From 29558d3600f5f795c6e25e5b8e1cd213b3dae2cb Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sun, 4 Mar 2018 14:24:28 -0600 Subject: [PATCH] Remove FD(), type asserting the ReadWriteCloser is sufficient --- if.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/if.go b/if.go index a77020a..965f2ac 100644 --- a/if.go +++ b/if.go @@ -3,7 +3,6 @@ package water import ( "errors" "io" - "os" ) // Interface is a TUN/TAP interface. @@ -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) -}