summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--table/adj.go13
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)