diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-04-27 14:53:01 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-04-27 15:20:53 +0000 |
commit | 6c32d42632df7b36459b6575b9c193f940a87865 (patch) | |
tree | 568116676ad066a317f3d74cf8b11edd7a9124c2 /table | |
parent | 28eaa375b3dbf89b584caec9f5c5a83b154ce226 (diff) |
table: remove unused methods
get/setOldBestPath is not used
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r-- | table/destination.go | 10 | ||||
-rw-r--r-- | table/table_manager.go | 1 |
2 files changed, 0 insertions, 11 deletions
diff --git a/table/destination.go b/table/destination.go index ead4797a..bf4afe63 100644 --- a/table/destination.go +++ b/table/destination.go @@ -58,8 +58,6 @@ type Destination interface { setBestPathReason(string) getBestPath() Path setBestPath(path Path) - getOldBestPath() Path - setOldBestPath(path Path) getKnownPathList() []Path setKnownPathList([]Path) String() string @@ -162,14 +160,6 @@ func (dd *DestinationDefault) setBestPath(path Path) { dd.bestPath = path } -func (dd *DestinationDefault) getOldBestPath() Path { - return dd.oldBestPath -} - -func (dd *DestinationDefault) setOldBestPath(path Path) { - dd.oldBestPath = path -} - func (dd *DestinationDefault) getKnownPathList() []Path { return dd.knownPathList } diff --git a/table/table_manager.go b/table/table_manager.go index a027e4a4..37452e65 100644 --- a/table/table_manager.go +++ b/table/table_manager.go @@ -191,7 +191,6 @@ func (manager *TableManager) calculate(destinationList []Destination) ([]Path, e }).Debug("best path is lost") p := destination.getBestPath() - destination.setOldBestPath(p) newPaths = append(newPaths, p.Clone(true)) } destination.setBestPath(nil) |