From 2a0796ccc45d86b2b3d0ba631d3880944cda5ffd Mon Sep 17 00:00:00 2001 From: Hu Jun Date: Sat, 27 Jun 2020 12:41:25 -0700 Subject: remove a unused func in lease_test.go Signed-off-by: Hu Jun --- dhcpv4/nclient4/lease_test.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'dhcpv4') diff --git a/dhcpv4/nclient4/lease_test.go b/dhcpv4/nclient4/lease_test.go index ef58d97..b0ff501 100644 --- a/dhcpv4/nclient4/lease_test.go +++ b/dhcpv4/nclient4/lease_test.go @@ -40,15 +40,6 @@ type testServerLease struct { ShouldFail bool //expected result } -func newtestServerLease(cip net.IP, m net.HardwareAddr, idops dhcpv4.Options) *testServerLease { - r := &testServerLease{} - r.assignedAddr = cip - r.key = &testLeaseKey{} - r.key.mac = m - r.key.idOptions = idops - return r -} - type testServerLeaseList struct { list []*testServerLease clientIDOptions dhcpv4.OptionCodeList -- cgit v1.2.3