event: Remove in favor of sdeventplus
Use the new library provided to all openbmc projects instead of rolling
our own managed pointer.
Tested: Compiled
Change-Id: I4993d4340e0e0aa5898e73ef815baa81b0e8a2bc
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/power-supply/power_supply.hpp b/power-supply/power_supply.hpp
index e88e257..30f660f 100644
--- a/power-supply/power_supply.hpp
+++ b/power-supply/power_supply.hpp
@@ -1,5 +1,6 @@
#pragma once
#include <sdbusplus/bus/match.hpp>
+#include <sdeventplus/event.hpp>
#include "average.hpp"
#include "device.hpp"
#include "maximum.hpp"
@@ -51,7 +52,7 @@
const std::string& objpath,
const std::string& invpath,
sdbusplus::bus::bus& bus,
- event::Event& e,
+ const sdeventplus::Event& e,
std::chrono::seconds& t,
std::chrono::seconds& p);
@@ -126,10 +127,6 @@
/** @brief Used to subscribe to D-Bus property changes for Present */
std::unique_ptr<sdbusplus::bus::match_t> presentMatch;
- /** @brief The sd_event structure used by the power on and present
- * timers. */
- event::Event& event;
-
/**
* @brief Interval for setting present to true.
*