control: Remove the sdevent defer redirect on USR1

The signal handler provided by sdeventplus already calls the provided
callback function from the event loop, there is no need to use a 'defer'
event source that also just calls a function from the event loop.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ie51c6abc9260a8fc43b13844356c62080835ea38
diff --git a/control/json/manager.cpp b/control/json/manager.cpp
index a505fce..147fe9a 100644
--- a/control/json/manager.cpp
+++ b/control/json/manager.cpp
@@ -102,15 +102,8 @@
     }
 }
 
-void Manager::sigUsr1Handler(sdeventplus::source::Signal&,
-                             const struct signalfd_siginfo*)
-{
-    debugDumpEventSource = std::make_unique<sdeventplus::source::Defer>(
-        _event, std::bind(std::mem_fn(&Manager::dumpDebugData), this,
-                          std::placeholders::_1));
-}
-
-void Manager::dumpDebugData(sdeventplus::source::EventBase& /*source*/)
+void Manager::dumpDebugData(sdeventplus::source::Signal&,
+                            const struct signalfd_siginfo*)
 {
     json data;
     FlightRecorder::instance().dump(data);
@@ -128,8 +121,6 @@
     }
 
     file << std::setw(4) << data;
-
-    debugDumpEventSource.reset();
 }
 
 void Manager::dumpCache(json& data)