From 3cd37dc88f178776efadac622546d9ee738225d8 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sat, 8 Aug 2015 21:31:46 +0900 Subject: bgp: remove unused methods Signed-off-by: ISHIDA Wataru --- packet/bgp.go | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'packet') diff --git a/packet/bgp.go b/packet/bgp.go index bbe55742..c3f43bdb 100644 --- a/packet/bgp.go +++ b/packet/bgp.go @@ -1109,25 +1109,6 @@ func (r *LabeledIPAddrPrefix) SAFI() uint8 { return SAFI_MPLS_LABEL } -func (r *IPAddrPrefix) decodeNextHop(data []byte) net.IP { - if r.addrlen == 0 { - r.addrlen = 4 - } - var next net.IP = data[0:r.addrlen] - return next -} - -func (r *LabeledVPNIPAddrPrefix) decodeNextHop(data []byte) net.IP { - // skip rd - var next net.IP = data[8 : 8+r.addrlen] - return next -} - -func (r *LabeledIPAddrPrefix) decodeNextHop(data []byte) net.IP { - var next net.IP = data[0:r.addrlen] - return next -} - func (l *LabeledIPAddrPrefix) DecodeFromBytes(data []byte) error { l.Length = uint8(data[0]) data = data[1:] -- cgit v1.2.3