Skip to content

Commit 8ceb496

Browse files
committed
removes unused func
Signed-off-by: Ashraf Fouda <[email protected]>
1 parent fdaddea commit 8ceb496

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

pkg/vm/machine.go

-11
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,6 @@ func (i Interface) asTap() string {
7777
return buf.String()
7878
}
7979

80-
// asMACvTap returns the command line argument for this interface as a macvtap
81-
func (i Interface) asMACvTap(fd int) string {
82-
var buf bytes.Buffer
83-
buf.WriteString(fmt.Sprintf("fd=%d", fd))
84-
if len(i.Mac) > 0 {
85-
buf.WriteString(fmt.Sprintf(",mac=%s", i.Mac))
86-
}
87-
88-
return buf.String()
89-
}
90-
9180
// getType detects the interface type
9281
func (i *Interface) getType() (InterfaceType, int, error) {
9382
link, err := netlink.LinkByName(i.Tap)

0 commit comments

Comments
 (0)