control: Remove `path` argument to add services
Change-Id: I378121c4d86e1c4854e6a0d2fa5b630054553106
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/json/manager.cpp b/control/json/manager.cpp
index a81940a..973d1c9 100644
--- a/control/json/manager.cpp
+++ b/control/json/manager.cpp
@@ -215,8 +215,7 @@
return empty;
}
-void Manager::addServices(const std::string& path, const std::string& intf,
- int32_t depth)
+void Manager::addServices(const std::string& intf, int32_t depth)
{
// Get all subtree objects for the given interface
auto objects = util::SDBusPlus::getSubTree(util::SDBusPlus::getBus(), "/",
@@ -271,7 +270,7 @@
const auto& serviceName = findService(path, intf);
if (serviceName.empty())
{
- addServices(path, intf, 0);
+ addServices(intf, 0);
return findService(path, intf);
}
diff --git a/control/json/manager.hpp b/control/json/manager.hpp
index 2ca2687..1a05a3b 100644
--- a/control/json/manager.hpp
+++ b/control/json/manager.hpp
@@ -202,15 +202,13 @@
* @brief Add a set of services for a path and interface by retrieving all
* the path subtrees to the given depth from root for the interface
*
- * @param[in] path - Path to add services for
* @param[in] intf - Interface to add services for
* @param[in] depth - Depth of tree traversal from root path
*
* @throws - DBusMethodError
* Throws a DBusMethodError when the `getSubTree` method call fails
*/
- static void addServices(const std::string& path, const std::string& intf,
- int32_t depth);
+ static void addServices(const std::string& intf, int32_t depth);
/**
* @brief Get the service for a given path and interface from cached