diff options
author | Hu Jun <hujun.work@gmail.com> | 2020-06-27 12:41:25 -0700 |
---|---|---|
committer | Hu Jun <hujun.work@gmail.com> | 2020-06-27 12:41:25 -0700 |
commit | 2a0796ccc45d86b2b3d0ba631d3880944cda5ffd (patch) | |
tree | 59141ccc2ee59b5c616590086378c9c18df9519d /dhcpv4 | |
parent | 885cbbe39ce955b230a731c8a9205b0f45a5c471 (diff) |
remove a unused func in lease_test.go
Signed-off-by: Hu Jun <hujun.work@gmail.com>
Diffstat (limited to 'dhcpv4')
-rw-r--r-- | dhcpv4/nclient4/lease_test.go | 9 |
1 files changed, 0 insertions, 9 deletions
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 |