control: Remove storing bus reference on fan objects
Remove the sdbusplus bus reference since its currently not needed within
the JSON fan object.
Change-Id: I2028a0ad4bd1881f0b3d442e063e3785cf9795d5
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/json/fan.cpp b/control/json/fan.cpp
index 3fe4aec..7a65da1 100644
--- a/control/json/fan.cpp
+++ b/control/json/fan.cpp
@@ -25,8 +25,7 @@
using json = nlohmann::json;
using namespace phosphor::logging;
-Fan::Fan(sdbusplus::bus::bus& bus, const json& jsonObj) :
- ConfigBase(jsonObj), _bus(bus)
+Fan::Fan(sdbusplus::bus::bus& bus, const json& jsonObj) : ConfigBase(jsonObj)
{
if (jsonObj.contains("profiles"))
{
diff --git a/control/json/fan.hpp b/control/json/fan.hpp
index 45bb035..d0f7a06 100644
--- a/control/json/fan.hpp
+++ b/control/json/fan.hpp
@@ -91,9 +91,6 @@
}
private:
- /* The sdbusplus bus object */
- sdbusplus::bus::bus& _bus;
-
/* The zone this fan belongs to */
std::string _zone;