Skip to content

Commit

Permalink
Remove FD(), type asserting the ReadWriteCloser is sufficient
Browse files Browse the repository at this point in the history
  • Loading branch information
Arceliar committed Mar 4, 2018
1 parent 061cccd commit 29558d3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions if.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package water
import (
"errors"
"io"
"os"
)

// Interface is a TUN/TAP interface.
Expand Down Expand Up @@ -78,8 +77,3 @@ func (ifce *Interface) IsTAP() bool {
func (ifce *Interface) Name() string {
return ifce.name
}

// FD returns the underlying File object, which will be needed to ioctl later
func (ifce *Interface) FD() *os.File {
return ifce.ReadWriteCloser.(*os.File)
}

0 comments on commit 29558d3

Please sign in to comment.