summaryrefslogtreecommitdiffhomepage
path: root/table/destination.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/destination.go')
-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 {