summaryrefslogtreecommitdiffhomepage
path: root/table
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-06-30 16:57:50 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-07-01 11:56:48 +0900
commit84a495d844d03a2da209cca722a2c2b2da7606f3 (patch)
treefbd190c2fda3364ef5fef5f50bbcc944de1788b0 /table
parent834df87c82f75b787c432d9194b4c82bff78e9d6 (diff)
table: remove unused field/func
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r--table/destination.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/table/destination.go b/table/destination.go
index 704cc865..aa30fc2f 100644
--- a/table/destination.go
+++ b/table/destination.go
@@ -70,7 +70,6 @@ type Destination struct {
newPathList []*Path
bestPath *Path
bestPathReason string
- oldBestPath *Path
}
func NewDestination(nlri bgp.AddrPrefixInterface) *Destination {
@@ -168,21 +167,6 @@ func (dd *Destination) addNewPath(newPath *Path) {
dd.newPathList = append(dd.newPathList, newPath)
}
-func (dd *Destination) removeOldPathsFromSource(source *PeerInfo) []*Path {
- removePaths := make([]*Path, 0)
- tempKnownPathList := make([]*Path, 0)
-
- for _, path := range dd.knownPathList {
- if path.GetSource().Equal(source) {
- removePaths = append(removePaths, path)
- } else {
- tempKnownPathList = append(tempKnownPathList, path)
- }
- }
- dd.knownPathList = tempKnownPathList
- return removePaths
-}
-
func (dd *Destination) validatePath(path *Path) {
if path == nil || path.GetRouteFamily() != dd.routeFamily {