nlsr: remove writeLog in NamePrefixList

Change-Id: Id54152684d1aa366b5eec8eeb79c046dedf6da7c
refs: #4131
diff --git a/src/name-prefix-list.cpp b/src/name-prefix-list.cpp
index ec52068..0bbcbaa 100644
--- a/src/name-prefix-list.cpp
+++ b/src/name-prefix-list.cpp
@@ -89,18 +89,6 @@
   m_nameList.sort();
 }
 
-void
-NamePrefixList::writeLog()
-{
-  _LOG_DEBUG("-------Name Prefix List--------");
-  int i = 1;
-  for (std::list<ndn::Name>::iterator it = m_nameList.begin();
-       it != m_nameList.end(); it++) {
-    _LOG_DEBUG("Name " << i << " : " << (*it));
-    i++;
-  }
-}
-
 std::ostream&
 operator<<(std::ostream& os, const NamePrefixList& list) {
   os << "Name prefix list: {\n";
diff --git a/src/name-prefix-list.hpp b/src/name-prefix-list.hpp
index 12669ce..cba76d3 100644
--- a/src/name-prefix-list.hpp
+++ b/src/name-prefix-list.hpp
@@ -75,9 +75,6 @@
   bool
   operator==(const NamePrefixList& other) const;
 
-  void
-  writeLog();
-
 private:
   std::list<ndn::Name> m_nameList;
 
diff --git a/src/nlsr.cpp b/src/nlsr.cpp
index f0c4305..f00bbe1 100644
--- a/src/nlsr.cpp
+++ b/src/nlsr.cpp
@@ -237,7 +237,7 @@
   // Logging start
   m_confParam.writeLog();
   m_adjacencyList.writeLog();
-  m_namePrefixList.writeLog();
+  _LOG_DEBUG(m_namePrefixList);
   // Logging end
   initializeKey();
   setStrategies();