summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/table/table.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2019-08-27 14:32:18 +0900
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-08-27 14:32:18 +0900
commit8e348d6f184db9cd802cb81bf7b4a9dbb338fb74 (patch)
tree4808e34905b15a9b2a0601bb17860e48cc20346d /internal/pkg/table/table.go
parente25e9373dd4dc95b5d224a33ae65cc4806d06e48 (diff)
table: delete unused deleteDestByNlri()
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to 'internal/pkg/table/table.go')
-rw-r--r--internal/pkg/table/table.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/internal/pkg/table/table.go b/internal/pkg/table/table.go
index a2002b41..c7e505cc 100644
--- a/internal/pkg/table/table.go
+++ b/internal/pkg/table/table.go
@@ -117,14 +117,6 @@ func (t *Table) deleteRTCPathsByVrf(vrf *Vrf, vrfs map[string]*Vrf) []*Path {
return pathList
}
-func (t *Table) deleteDestByNlri(nlri bgp.AddrPrefixInterface) *Destination {
- if dst := t.GetDestination(nlri); dst != nil {
- t.deleteDest(dst)
- return dst
- }
- return nil
-}
-
func (t *Table) deleteDest(dest *Destination) {
destinations := t.GetDestinations()
delete(destinations, t.tableKey(dest.GetNlri()))