manager: remove unused bus member
Fix the following clang warning:
```
../manager/manager.hpp:140:23: error: private field 'bus' is not used [-Werror,-Wunused-private-field]
140 | sdbusplus::bus_t& bus;
| ^
```
I could have removed the bus entirely from the member, but I don't
really like that the utilities create their own bus connection, so
I'll likely refactor that in the future. There is no point to remove
the parameter only to add it back in.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I12b6a4ea51ea0a375c0f4652acfc4472ab0a0944
diff --git a/manager/manager.hpp b/manager/manager.hpp
index 1f5f0a5..f211461 100644
--- a/manager/manager.hpp
+++ b/manager/manager.hpp
@@ -78,10 +78,9 @@
* @param [in] Event - sd event handler
*/
Manager(
- sdbusplus::bus_t& bus, const GroupMap& ledLayout,
+ sdbusplus::bus_t&, const GroupMap& ledLayout,
const sdeventplus::Event& event = sdeventplus::Event::get_default()) :
- ledMap(ledLayout), bus(bus),
- timer(event, [this](auto&) { driveLedsHandler(); })
+ ledMap(ledLayout), timer(event, [this](auto&) { driveLedsHandler(); })
{
// Nothing here
}
@@ -136,9 +135,6 @@
callBack);
private:
- /** @brief sdbusplus handler */
- sdbusplus::bus_t& bus;
-
/** Map of physical LED path to service name */
std::unordered_map<std::string, std::string> phyLeds;