diff options
author | Christopher Koch <chrisko@google.com> | 2018-12-29 12:21:34 -0800 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2019-01-11 19:38:21 +0000 |
commit | 03a987ca7475df51eb9164e807f9c1929017e08a (patch) | |
tree | ec594d8874670e314f9f355e030f8e633849e9d9 /dhcpv4/option_relay_agent_information.go | |
parent | 9492662dae0651fd4d6698d35b58ade7300e149e (diff) |
dhcpv4: remove unused Option.Length function.
Diffstat (limited to 'dhcpv4/option_relay_agent_information.go')
-rw-r--r-- | dhcpv4/option_relay_agent_information.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/dhcpv4/option_relay_agent_information.go b/dhcpv4/option_relay_agent_information.go index 624e261..d3fac80 100644 --- a/dhcpv4/option_relay_agent_information.go +++ b/dhcpv4/option_relay_agent_information.go @@ -39,13 +39,3 @@ func (o *OptRelayAgentInformation) ToBytes() []byte { func (o *OptRelayAgentInformation) String() string { return fmt.Sprintf("Relay Agent Information -> %v", o.Options) } - -// Length returns the length of the data portion (excluding option code and byte -// for length, if any). -func (o *OptRelayAgentInformation) Length() int { - l := 0 - for _, opt := range o.Options { - l += 2 + opt.Length() - } - return l -} |