summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_vendorclass.go
diff options
context:
space:
mode:
authorChristopher Koch <c@chrisko.ch>2019-01-20 20:28:24 +0000
committerinsomniac <insomniacslk@users.noreply.github.com>2019-01-26 23:34:26 +0000
commit64f29461718b0dac77d8156ceceacce086fe14b2 (patch)
tree17146477afbf8da8e0e0535a330ffd18dbb93a3c /dhcpv6/option_vendorclass.go
parentda69dad309583925ff4f8d0454bd0fb5bb6a1402 (diff)
dhcpv6: remove unnecessary Length function
Diffstat (limited to 'dhcpv6/option_vendorclass.go')
-rw-r--r--dhcpv6/option_vendorclass.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/dhcpv6/option_vendorclass.go b/dhcpv6/option_vendorclass.go
index 67fa15a..ef85087 100644
--- a/dhcpv6/option_vendorclass.go
+++ b/dhcpv6/option_vendorclass.go
@@ -30,15 +30,6 @@ func (op *OptVendorClass) ToBytes() []byte {
return buf.Data()
}
-// Length returns the option length
-func (op *OptVendorClass) Length() int {
- ret := 0
- for _, data := range op.Data {
- ret += 2 + len(data)
- }
- return 4 + ret
-}
-
// String returns a string representation of the VendorClass data
func (op *OptVendorClass) String() string {
vcStrings := make([]string, 0)