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/systemd_target_signal.hpp b/systemd_target_signal.hpp
index e6bbcbe..cddb358 100644
--- a/systemd_target_signal.hpp
+++ b/systemd_target_signal.hpp
@@ -41,13 +41,10 @@
"/org/freedesktop/systemd1") +
sdbusplus::bus::match::rules::interface(
"org.freedesktop.systemd1.Manager"),
- std::bind(std::mem_fn(&SystemdTargetLogging::systemdUnitChange),
- this, std::placeholders::_1)),
+ [this](sdbusplus::message_t& m) { systemdUnitChange(m); }),
systemdNameOwnedChangedSignal(
bus, sdbusplus::bus::match::rules::nameOwnerChanged(),
- std::bind(
- std::mem_fn(&SystemdTargetLogging::processNameChangeSignal),
- this, std::placeholders::_1))
+ [this](sdbusplus::message_t& m) { processNameChangeSignal(m); })
{}
/**