monitor: Remove getService
Remove getService from tach_sensor as it is no longer used.
Change-Id: I568afb502379e05e85685d279033ab198c3cc91f
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/monitor/tach_sensor.cpp b/monitor/tach_sensor.cpp
index bcdde0f..0ec52ba 100644
--- a/monitor/tach_sensor.cpp
+++ b/monitor/tach_sensor.cpp
@@ -26,7 +26,6 @@
namespace monitor
{
-constexpr auto PROPERTY_INTF = "org.freedesktop.DBus.Properties";
constexpr auto FAN_SENSOR_PATH = "/xyz/openbmc_project/sensors/fan_tach/";
constexpr auto FAN_SENSOR_CONTROL_INTF = "xyz.openbmc_project.Control.FanSpeed";
constexpr auto FAN_SENSOR_VALUE_INTF = "xyz.openbmc_project.Sensor.Value";
@@ -115,17 +114,6 @@
}
-//Can cache this value after openbmc/openbmc#1496 is resolved
-std::string TachSensor::getService()
-{
- // Use the Value interface since not all sensors implement
- // the control interface.
- return phosphor::fan::util::getService(_name,
- FAN_SENSOR_VALUE_INTF,
- _bus);
-}
-
-
std::string TachSensor::getMatchString(const std::string& interface)
{
return std::string("type='signal',"
diff --git a/monitor/tach_sensor.hpp b/monitor/tach_sensor.hpp
index d564f73..fbda37b 100644
--- a/monitor/tach_sensor.hpp
+++ b/monitor/tach_sensor.hpp
@@ -122,11 +122,6 @@
private:
/**
- * @brief Returns the service name for reading the sensor
- */
- std::string getService();
-
- /**
* @brief Returns the match string to use for matching
* on a properties changed signal.
*/