Replace use of boost::algorithm::all_of with ranges::all_of

This commit is contained in:
Alex Beregszaszi 2022-09-27 03:33:13 +02:00
parent 8230022e18
commit 0f484ec93b
2 changed files with 2 additions and 4 deletions

View File

@ -31,7 +31,7 @@
#include <libsolutil/CommonData.h>
#include <boost/algorithm/cxx11/all_of.hpp>
#include <range/v3/algorithm/all_of.hpp>
#include <optional>
#include <variant>
@ -64,7 +64,7 @@ void UnusedFunctionParameterPruner::run(OptimiserStepContext& _context, Block& _
{
FunctionDefinition const& f = std::get<FunctionDefinition>(statement);
if (tooSimpleToBePruned(f) || boost::algorithm::all_of(f.parameters + f.returnVariables, used))
if (tooSimpleToBePruned(f) || ranges::all_of(f.parameters + f.returnVariables, used))
continue;
usedParametersAndReturnVariables[f.name] = {

View File

@ -34,8 +34,6 @@
#include <libsolutil/FixedHash.h>
#include <boost/algorithm/cxx11/all_of.hpp>
#include <range/v3/view/reverse.hpp>
#include <ostream>