notifier_dbus_handler: Remove the vector
This vector isn't needed, as we only use the D-Bus object to notify the
phosphor-dump-manager.
Tested:
Verified on a local machine that the dump manager still detects the
new D-Bus path.
Signed-off-by: Brandon Kim <brandonkim@google.com>
Change-Id: If8fb12554f5015377c71c56e1f059c14c3865661
diff --git a/include/rde/notifier_dbus_handler.hpp b/include/rde/notifier_dbus_handler.hpp
index 708a45a..ec9ba10 100644
--- a/include/rde/notifier_dbus_handler.hpp
+++ b/include/rde/notifier_dbus_handler.hpp
@@ -38,11 +38,6 @@
sdbusplus::asio::object_server objServer;
/**
- * @brief A vector to keep track of DBus FilePath objects.
- */
- std::vector<std::unique_ptr<CperFileNotifier>> notifierObjs;
-
- /**
* @brief DBus index of the next entry.
*/
uint64_t nextEntry = 0;
diff --git a/src/rde/notifier_dbus_handler.cpp b/src/rde/notifier_dbus_handler.cpp
index e6d5e4e..f61354e 100644
--- a/src/rde/notifier_dbus_handler.cpp
+++ b/src/rde/notifier_dbus_handler.cpp
@@ -16,7 +16,6 @@
{
auto obj =
std::make_unique<CperFileNotifier>(objServer, filePath, nextEntry);
- notifierObjs.push_back(std::move(obj));
++nextEntry;
}