From 03a987ca7475df51eb9164e807f9c1929017e08a Mon Sep 17 00:00:00 2001 From: Christopher Koch Date: Sat, 29 Dec 2018 12:21:34 -0800 Subject: dhcpv4: remove unused Option.Length function. --- dhcpv4/option_broadcast_address.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'dhcpv4/option_broadcast_address.go') diff --git a/dhcpv4/option_broadcast_address.go b/dhcpv4/option_broadcast_address.go index 1f6d4b8..c8bfe71 100644 --- a/dhcpv4/option_broadcast_address.go +++ b/dhcpv4/option_broadcast_address.go @@ -36,9 +36,3 @@ func (o *OptBroadcastAddress) ToBytes() []byte { func (o *OptBroadcastAddress) String() string { return fmt.Sprintf("Broadcast Address -> %v", o.BroadcastAddress.String()) } - -// Length returns the length of the data portion (excluding option code an byte -// length). -func (o *OptBroadcastAddress) Length() int { - return len(o.BroadcastAddress.To4()) -} -- cgit v1.2.3