diff options
author | William A. Kennington III <wak@google.com> | 2018-10-30 19:49:29 -0700 |
---|---|---|
committer | Matthew Barth <msbarth@linux.ibm.com> | 2019-02-05 16:20:02 +0000 |
commit | 8fd879fb7bb9ed34fe69581dc714b4158046519f (patch) | |
tree | aa33e860d7d018fd9670599039e459a4bebc6324 /event.hpp | |
parent | a1aef7a100a9b27d2133622a695bb8c09c2869bf (diff) | |
download | phosphor-fan-presence-8fd879fb7bb9ed34fe69581dc714b4158046519f.tar.gz phosphor-fan-presence-8fd879fb7bb9ed34fe69581dc714b4158046519f.zip |
Remove timer in favor of sdeventplus/utility/timer
This removes the custom timer implementation and moves to the
sdeventplus utility. Functionally this should make no change
Tested:
Built and run through the unit test suite.
Change-Id: Ib7ee90d489d5db72496aaaca91c3cf5490ad47d6
Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'event.hpp')
-rw-r--r-- | event.hpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/event.hpp b/event.hpp deleted file mode 100644 index a937d6d..0000000 --- a/event.hpp +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once - -#include <memory> -#include <systemd/sd-event.h> - -namespace phosphor -{ -namespace fan -{ -namespace event -{ - -/** - * Custom deleter for sd_event_source - */ -struct EventSourceDeleter -{ - void operator()(sd_event_source* eventSource) const - { - sd_event_source_unref(eventSource); - } -}; - -using EventSourcePtr = std::unique_ptr<sd_event_source, EventSourceDeleter>; - -} -} -} |