Remove unused variable
Clang correctly notes that ioc is private and unused. Remove it.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I1aa16b3f3c4e08d8c48205c9e060f6e1087956d4
diff --git a/example/get-all-properties.cpp b/example/get-all-properties.cpp
index 2f1e908..8a5c680 100644
--- a/example/get-all-properties.cpp
+++ b/example/get-all-properties.cpp
@@ -17,10 +17,10 @@
class Application
{
public:
- Application(boost::asio::io_context& ioc, sdbusplus::asio::connection& bus,
+ Application(sdbusplus::asio::connection& bus,
sdbusplus::asio::object_server& objServer) :
- ioc_(ioc),
- bus_(bus), objServer_(objServer)
+ bus_(bus),
+ objServer_(objServer)
{
demo_ = objServer_.add_unique_interface(demoObjectPath,
demoInterfaceName);
@@ -194,7 +194,6 @@
}
private:
- boost::asio::io_context& ioc_;
sdbusplus::asio::connection& bus_;
sdbusplus::asio::object_server& objServer_;
@@ -218,7 +217,7 @@
bus->request_name(demoServiceName.c_str());
- Application app(ioc, *bus, *objServer);
+ Application app(*bus, *objServer);
boost::asio::post(ioc,
[&app] { app.asyncGetAllPropertiesStringTypeOnly(); });