From c87d53dfe15155eb0e930d4369603db4ca16c1ea Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Mon, 1 Jun 2015 17:16:19 -0400 Subject: Remove Value.Get() interfaces These were only defined for a couple for flag types (ip, ipmask, uint16, uint32) and weren't used anywhere. If you already knew the type well enough to know that it was one of the few with a Get() interface, you could cast yourself out of the Value... --- ip.go | 3 --- ipmask.go | 3 --- uint16.go | 4 ---- uint32.go | 3 --- 4 files changed, 13 deletions(-) diff --git a/ip.go b/ip.go index 9d53bd3..efa75fb 100644 --- a/ip.go +++ b/ip.go @@ -22,9 +22,6 @@ func (i *ipValue) Set(s string) error { *i = ipValue(ip) return nil } -func (i *ipValue) Get() interface{} { - return net.IP(*i) -} func (i *ipValue) Type() string { return "ip" diff --git a/ipmask.go b/ipmask.go index 6f85be9..09b9533 100644 --- a/ipmask.go +++ b/ipmask.go @@ -22,9 +22,6 @@ func (i *ipMaskValue) Set(s string) error { *i = ipMaskValue(ip) return nil } -func (i *ipMaskValue) Get() interface{} { - return net.IPMask(*i) -} func (i *ipMaskValue) Type() string { return "ipMask" diff --git a/uint16.go b/uint16.go index ec14ab0..ab1c1f9 100644 --- a/uint16.go +++ b/uint16.go @@ -19,10 +19,6 @@ func (i *uint16Value) Set(s string) error { return err } -func (i *uint16Value) Get() interface{} { - return uint16(*i) -} - func (i *uint16Value) Type() string { return "uint16" } diff --git a/uint32.go b/uint32.go index 05bc3bd..db635ae 100644 --- a/uint32.go +++ b/uint32.go @@ -18,9 +18,6 @@ func (i *uint32Value) Set(s string) error { *i = uint32Value(v) return err } -func (i *uint32Value) Get() interface{} { - return uint32(*i) -} func (i *uint32Value) Type() string { return "uint32" -- cgit v1.2.3