Skip to content

Commit 29558d3

Browse files
committed
Remove FD(), type asserting the ReadWriteCloser is sufficient
1 parent 061cccd commit 29558d3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

if.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package water
33
import (
44
"errors"
55
"io"
6-
"os"
76
)
87

98
// Interface is a TUN/TAP interface.
@@ -78,8 +77,3 @@ func (ifce *Interface) IsTAP() bool {
7877
func (ifce *Interface) Name() string {
7978
return ifce.name
8079
}
81-
82-
// FD returns the underlying File object, which will be needed to ioctl later
83-
func (ifce *Interface) FD() *os.File {
84-
return ifce.ReadWriteCloser.(*os.File)
85-
}

0 commit comments

Comments
 (0)