summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_userclass.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4/option_userclass.go')
-rw-r--r--dhcpv4/option_userclass.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/dhcpv4/option_userclass.go b/dhcpv4/option_userclass.go
index 560d6ac..2e31846 100644
--- a/dhcpv4/option_userclass.go
+++ b/dhcpv4/option_userclass.go
@@ -36,18 +36,6 @@ func (op *OptUserClass) ToBytes() []byte {
return buf.Data()
}
-// Length returns the option length
-func (op *OptUserClass) Length() int {
- ret := 0
- if !op.Rfc3004 {
- return len(op.UserClasses[0])
- }
- for _, uc := range op.UserClasses {
- ret += 1 + len(uc)
- }
- return ret
-}
-
func (op *OptUserClass) String() string {
ucStrings := make([]string, 0, len(op.UserClasses))
if !op.Rfc3004 {