summaryrefslogtreecommitdiffhomepage
path: root/table/destination.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-20 18:07:18 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-21 13:32:37 +0900
commit92012ee629d2d36f51c3fe646cdf5b94c7823078 (patch)
tree44d4bf184437bf481b0d74575fc40147c3f7b5ca /table/destination.go
parentfb83e41aebfa0b51c5e454d1f77870513d47e82d (diff)
table: Destination's Calculate doesn't need to return newly added paths
Nobody uses them. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/destination.go')
-rw-r--r--table/destination.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/table/destination.go b/table/destination.go
index 2111f695..131cb129 100644
--- a/table/destination.go
+++ b/table/destination.go
@@ -226,10 +226,9 @@ func (dd *Destination) validatePath(path *Path) {
//
// Modifies destination's state related to stored paths. Removes withdrawn
// paths from known paths. Also, adds new paths to known paths.
-func (dest *Destination) Calculate(ids []string) (map[string]*Path, []*Path, []*Path) {
+func (dest *Destination) Calculate(ids []string) (map[string]*Path, []*Path) {
best := make(map[string]*Path, len(ids))
oldKnownPathList := dest.knownPathList
- updated := dest.newPathList
// First remove the withdrawn paths.
withdrawnList := dest.explicitWithdraw()
// Do implicit withdrawal
@@ -266,7 +265,7 @@ func (dest *Destination) Calculate(ids []string) (map[string]*Path, []*Path, []*
for _, id := range ids {
best[id] = f(id)
}
- return best, updated, withdrawnList
+ return best, withdrawnList
}
// Removes withdrawn paths.