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);
}