diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-12-08 14:07:26 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-12-08 14:45:37 +0900 |
commit | 62373821c59cd5a98338cb7792b1a7248422acfb (patch) | |
tree | 5cfcd0b409d0aa675816e9e030717ea7ce3621bd /table | |
parent | a719a3de6e8b2bb7803e02e7e05ea8e854d6f396 (diff) |
table: remove unused DeletePathsforPeer()
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r-- | table/table_manager.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/table/table_manager.go b/table/table_manager.go index cc73c89b..518b961e 100644 --- a/table/table_manager.go +++ b/table/table_manager.go @@ -239,19 +239,6 @@ func (manager *TableManager) DeletePathsByPeer(info *PeerInfo, rf bgp.RouteFamil return nil } -func (manager *TableManager) DeletePathsforPeer(id string, peerInfo *PeerInfo, rf bgp.RouteFamily) ([]*Path, error) { - if t, ok := manager.Tables[rf]; ok { - destinationList := t.DeleteDestByPeer(peerInfo) - manager.calculate(destinationList) - paths := make([]*Path, 0, len(destinationList)) - for _, dst := range destinationList { - paths = append(paths, dst.NewFeed(id)) - } - return paths, nil - } - return nil, nil -} - func (manager *TableManager) ProcessPaths(pathList []*Path) []*Destination { m := make(map[string]bool, len(pathList)) dsts := make([]*Destination, 0, len(pathList)) |