diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-05-28 14:05:44 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-05-28 22:30:24 +0900 |
commit | a75bcf3e9ee18e4e61f4852cae34d54df5cef868 (patch) | |
tree | 76c2c39b84ed360696c6b194bc308dd3353f3963 /table | |
parent | da488beb005f99ab6a82aca1301726e71d60eb50 (diff) |
table: remove unused Exists method in AdjRib strcture
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r-- | table/adj.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/table/adj.go b/table/adj.go index 8c7f0de7..54e0a324 100644 --- a/table/adj.go +++ b/table/adj.go @@ -144,19 +144,6 @@ func (adj *AdjRib) StaleAll(rfList []bgp.RouteFamily) []*Path { return pathList } -func (adj *AdjRib) Exists(path *Path) bool { - if path == nil { - return false - } - family := path.GetRouteFamily() - table, ok := adj.table[family] - if !ok { - return false - } - _, ok = table[path.getPrefix()] - return ok -} - func (adj *AdjRib) Select(family bgp.RouteFamily, accepted bool, option ...TableSelectOption) (*Table, error) { m := make(map[string][]*Path) pl := adj.PathList([]bgp.RouteFamily{family}, accepted) |