treewide: Remove uses of bind
Bind is less compatible with function wrappers like function2 and more
terse to read.
Change-Id: I34474b71758db1ffee301729c585c4d555df2064
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/bmc_state_manager.hpp b/bmc_state_manager.hpp
index 026cb3f..29e318f 100644
--- a/bmc_state_manager.hpp
+++ b/bmc_state_manager.hpp
@@ -6,8 +6,6 @@
#include <sdbusplus/bus.hpp>
-#include <functional>
-
namespace phosphor
{
namespace state
@@ -40,8 +38,7 @@
sdbusRule::type::signal() + sdbusRule::member("JobRemoved") +
sdbusRule::path("/org/freedesktop/systemd1") +
sdbusRule::interface("org.freedesktop.systemd1.Manager"),
- std::bind(std::mem_fn(&BMC::bmcStateChange), this,
- std::placeholders::_1)))
+ [this](sdbusplus::message_t& m) { bmcStateChange(m); }))
{
subscribeToSystemdSignals();
discoverInitialState();