dbushelper: drop obsolete parameter from interface
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Idebae41e021f54c3670cc22aa6c784549a361c23
diff --git a/dbus/dbuspassive.cpp b/dbus/dbuspassive.cpp
index 84d1f93..ea47122 100644
--- a/dbus/dbuspassive.cpp
+++ b/dbus/dbuspassive.cpp
@@ -47,8 +47,6 @@
}
/* Need to get the scale and initial value */
- auto tempBus = sdbusplus::bus::new_system();
-
/* service == busname */
std::string path = getSensorPath(type, id);
@@ -57,10 +55,10 @@
try
{
- std::string service = helper->getService(tempBus, sensorintf, path);
+ std::string service = helper->getService(sensorintf, path);
- helper->getProperties(tempBus, service, path, &settings);
- failed = helper->thresholdsAsserted(tempBus, service, path);
+ helper->getProperties(service, path, &settings);
+ failed = helper->thresholdsAsserted(service, path);
}
catch (const std::exception& e)
{