Utils: Remove unused getSensorConfiguration method
Since dbus sensor only uses the getSensorConfiguration method with the
`useCache` parameter, this patch removes the getSensorConfiguration
method that does not use the `useCache` parameter.
Tested: built dbus-sensors successfully and it works fine with this
patch.
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I1730df517e115de0625cfcca561f08af1d053b46
diff --git a/src/Utils.cpp b/src/Utils.cpp
index 357d143..f109b4d 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -137,14 +137,6 @@
bool getSensorConfiguration(
const std::string& type,
const std::shared_ptr<sdbusplus::asio::connection>& dbusConnection,
- ManagedObjectType& resp)
-{
- return getSensorConfiguration(type, dbusConnection, resp, false);
-}
-
-bool getSensorConfiguration(
- const std::string& type,
- const std::shared_ptr<sdbusplus::asio::connection>& dbusConnection,
ManagedObjectType& resp, bool useCache)
{
static ManagedObjectType managedObj;
diff --git a/src/Utils.hpp b/src/Utils.hpp
index 4562b6f..bd33255 100644
--- a/src/Utils.hpp
+++ b/src/Utils.hpp
@@ -80,11 +80,6 @@
const std::shared_ptr<sdbusplus::asio::connection>& dbusConnection,
ManagedObjectType& resp, bool useCache);
-bool getSensorConfiguration(
- const std::string& type,
- const std::shared_ptr<sdbusplus::asio::connection>& dbusConnection,
- ManagedObjectType& resp);
-
void createAssociation(
std::shared_ptr<sdbusplus::asio::dbus_interface>& association,
const std::string& path);