remove unnecessary boost calls
There were two references to boost in the codebase:
- An unused header included.
- A 'reverse' operation that now exists in std.
Update them accordingly to make the boost dependency unnecessary.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ie30d889e965885fecf804cdead34b27b090216e5
diff --git a/host_check.cpp b/host_check.cpp
index 37a6689..d866085 100644
--- a/host_check.cpp
+++ b/host_check.cpp
@@ -4,7 +4,6 @@
#include <unistd.h>
-#include <boost/range/adaptor/reversed.hpp>
#include <phosphor-logging/lg2.hpp>
#include <sdbusplus/bus.hpp>
#include <sdbusplus/exception.hpp>
@@ -16,6 +15,7 @@
#include <cstdlib>
#include <fstream>
#include <iostream>
+#include <ranges>
#include <thread>
#include <vector>
@@ -84,8 +84,7 @@
// on D-Bus until it has checked with the host. Therefore it's most
// efficient to call the PLDM interface first. Do that by going in reverse
// of the interfaces returned to us (PLDM will be last if available)
- for (const auto& [path, services] :
- boost::adaptors::reverse(mapperResponse))
+ for (const auto& [path, services] : std::views::reverse(mapperResponse))
{
for (const auto& serviceIter : services)
{
diff --git a/host_condition_gpio/host_condition_main.cpp b/host_condition_gpio/host_condition_main.cpp
index cdac79c..6912b7c 100644
--- a/host_condition_gpio/host_condition_main.cpp
+++ b/host_condition_gpio/host_condition_main.cpp
@@ -2,7 +2,6 @@
#include "host_condition.hpp"
-#include <boost/algorithm/string.hpp>
#include <sdbusplus/bus.hpp>
#include <cstdlib>