table: MeasurementsAccessor uses StrategyChoice
This commit also deletes fib::Entry::set/getStrategy attribute.
refs #1276
Change-Id: I57dfe842a8024e0ad9908ba8a9c415d5f4ac1bbe
diff --git a/daemon/table/fib-entry.cpp b/daemon/table/fib-entry.cpp
index 733782b..6a9b686 100644
--- a/daemon/table/fib-entry.cpp
+++ b/daemon/table/fib-entry.cpp
@@ -38,9 +38,9 @@
it = m_nextHops.end() - 1;
}
// now it refers to the NextHop for face
-
+
it->setCost(cost);
-
+
this->sortNextHops();
}
@@ -53,7 +53,7 @@
if (it == m_nextHops.end()) {
return;
}
-
+
m_nextHops.erase(it);
}
@@ -69,12 +69,6 @@
std::sort(m_nextHops.begin(), m_nextHops.end(), &compare_NextHop_cost);
}
-void
-Entry::setStrategy(shared_ptr<fw::Strategy> strategy)
-{
- m_strategy = strategy;
-}
-
} // namespace fib
} // namespace nfd