table: simplify StrategyChoice with C++11 features
refs #2100
Change-Id: If0082c8561d706df86e92c14cb87762962ff200b
diff --git a/daemon/table/strategy-choice-entry.cpp b/daemon/table/strategy-choice-entry.cpp
index 3271186..2b7a257 100644
--- a/daemon/table/strategy-choice-entry.cpp
+++ b/daemon/table/strategy-choice-entry.cpp
@@ -27,13 +27,12 @@
#include "core/logger.hpp"
#include "fw/strategy.hpp"
-NFD_LOG_INIT("StrategyChoiceEntry");
-
namespace nfd {
namespace strategy_choice {
Entry::Entry(const Name& prefix)
: m_prefix(prefix)
+ , m_strategy(nullptr)
{
}
@@ -43,14 +42,5 @@
return m_strategy->getName();
}
-void
-Entry::setStrategy(shared_ptr<fw::Strategy> strategy)
-{
- BOOST_ASSERT(static_cast<bool>(strategy));
- m_strategy = strategy;
-
- NFD_LOG_INFO("Set strategy " << strategy->getName() << " for " << m_prefix << " prefix");
-}
-
} // namespace strategy_choice
} // namespace nfd