face: remove awkward Face::setLocal, use a constructor argument instead.

Change-Id: Ic366ecdc83c5771138ff584ffb944a4e17300eb1
diff --git a/daemon/face/face.cpp b/daemon/face/face.cpp
index cc4fba8..8e81217 100644
--- a/daemon/face/face.cpp
+++ b/daemon/face/face.cpp
@@ -9,10 +9,11 @@
 
 namespace nfd {
 
-NFD_LOG_INIT("Face");
+NFD_LOG_INIT("Face")
 
-Face::Face()
+Face::Face(bool isLocal)
   : m_id(INVALID_FACEID)
+  , m_isLocal(isLocal)
 {
 }
 
@@ -33,26 +34,6 @@
   m_id = faceId;
 }
 
-bool
-Face::isLocal() const
-{
-  return m_isLocal;
-}
-
-// this method is protected and can be used only in derived class
-// to set localhost scope
-void
-Face::setLocal(bool isLocal)
-{
-  m_isLocal = isLocal;
-}
-
-bool
-Face::isUp() const
-{
-  return true;
-}
-
 void
 Face::setDescription(const std::string& description)
 {
@@ -72,6 +53,12 @@
 }
 
 bool
+Face::isUp() const
+{
+  return true;
+}
+
+bool
 Face::decodeAndDispatchInput(const Block& element)
 {
   /// \todo Ensure lazy field decoding process