dbushelper: drop obsolete parameter from interface
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Idebae41e021f54c3670cc22aa6c784549a361c23
diff --git a/dbus/dbuswrite.cpp b/dbus/dbuswrite.cpp
index a6b2835..288cb1a 100644
--- a/dbus/dbuswrite.cpp
+++ b/dbus/dbuswrite.cpp
@@ -38,12 +38,11 @@
const std::string& path, int64_t min, int64_t max,
std::unique_ptr<DbusHelperInterface> helper)
{
- auto tempBus = sdbusplus::bus::new_system();
std::string connectionName;
try
{
- connectionName = helper->getService(tempBus, pwmInterface, path);
+ connectionName = helper->getService(pwmInterface, path);
}
catch (const std::exception& e)
{
@@ -93,12 +92,11 @@
int64_t max,
std::unique_ptr<DbusHelperInterface> helper)
{
- auto tempBus = sdbusplus::bus::new_system();
std::string connectionName;
try
{
- connectionName = helper->getService(tempBus, pwmInterface, path);
+ connectionName = helper->getService(pwmInterface, path);
}
catch (const std::exception& e)
{