Replace boost string predicate functions with stdlib ones
Now that we're on C++20 we no longer need boost for starts_with() and
ends_with() tests.
Also remove the predicate.hpp #include from files that weren't actually
using anything from it.
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Change-Id: Id68a019d5108a4646eb9b5fd18af33d60617e048
diff --git a/src/IpmbSensor.cpp b/src/IpmbSensor.cpp
index 6c8bace..9d087a7 100644
--- a/src/IpmbSensor.cpp
+++ b/src/IpmbSensor.cpp
@@ -17,7 +17,6 @@
#include <IpmbSensor.hpp>
#include <Utils.hpp>
#include <VariantVisitors.hpp>
-#include <boost/algorithm/string/predicate.hpp>
#include <boost/container/flat_map.hpp>
#include <sdbusplus/asio/connection.hpp>
#include <sdbusplus/asio/object_server.hpp>
@@ -576,8 +575,8 @@
auto findStatus = values.find(power::property);
if (findStatus != values.end())
{
- bool powerStatus = boost::ends_with(
- std::get<std::string>(findStatus->second), ".Running");
+ bool powerStatus =
+ std::get<std::string>(findStatus->second).ends_with(".Running");
if (powerStatus)
{
if (!initCmdTimer)