mgmt: eliminate FaceManager::setConfigFile()
Change-Id: Ib39b05a969345448b3719047093577df31d2bf8a
Refs: #3904
diff --git a/daemon/mgmt/face-manager.cpp b/daemon/mgmt/face-manager.cpp
index 2be2e0b..ba7cb36 100644
--- a/daemon/mgmt/face-manager.cpp
+++ b/daemon/mgmt/face-manager.cpp
@@ -38,7 +38,8 @@
NFD_LOG_INIT("FaceManager");
FaceManager::FaceManager(FaceSystem& faceSystem,
- Dispatcher& dispatcher, CommandAuthenticator& authenticator)
+ Dispatcher& dispatcher,
+ CommandAuthenticator& authenticator)
: NfdManagerBase(dispatcher, authenticator, "faces")
, m_faceSystem(faceSystem)
, m_faceTable(faceSystem.getFaceTable())
@@ -70,12 +71,6 @@
}
void
-FaceManager::setConfigFile(ConfigFile& configFile)
-{
- m_faceSystem.setConfigFile(configFile);
-}
-
-void
FaceManager::createFace(const Name& topPrefix, const Interest& interest,
const ControlParameters& parameters,
const ndn::mgmt::CommandContinuation& done)
diff --git a/daemon/mgmt/face-manager.hpp b/daemon/mgmt/face-manager.hpp
index e50b858..6f05b0f 100644
--- a/daemon/mgmt/face-manager.hpp
+++ b/daemon/mgmt/face-manager.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2017, Regents of the University of California,
+ * Copyright (c) 2014-2018, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -28,6 +28,7 @@
#include "nfd-manager-base.hpp"
#include "face/face-system.hpp"
+
#include <ndn-cxx/mgmt/nfd/face-status.hpp>
#include <ndn-cxx/mgmt/nfd/face-query-filter.hpp>
#include <ndn-cxx/mgmt/nfd/face-event-notification.hpp>
@@ -42,13 +43,8 @@
{
public:
FaceManager(FaceSystem& faceSystem,
- Dispatcher& dispatcher, CommandAuthenticator& authenticator);
-
- /**
- * @brief Subscribe to face_system section for the config file
- */
- void
- setConfigFile(ConfigFile& configFile);
+ Dispatcher& dispatcher,
+ CommandAuthenticator& authenticator);
PUBLIC_WITH_TESTS_ELSE_PRIVATE: // ControlCommand
void