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/ADCSensorMain.cpp b/src/ADCSensorMain.cpp
index 019226f..3669330 100644
--- a/src/ADCSensorMain.cpp
+++ b/src/ADCSensorMain.cpp
@@ -18,7 +18,6 @@
#include <Utils.hpp>
#include <VariantVisitors.hpp>
#include <boost/algorithm/string/case_conv.hpp>
-#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/container/flat_set.hpp>
#include <sdbusplus/asio/connection.hpp>
@@ -185,7 +184,7 @@
it != sensorsChanged->end(); it++)
{
if (findSensor->second &&
- boost::ends_with(*it, findSensor->second->name))
+ it->ends_with(findSensor->second->name))
{
sensorsChanged->erase(it);
findSensor->second = nullptr;