Skip to content

Commit

Permalink
Replace use of boost::algorithm::all_of with ranges::all_of
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Sep 27, 2022
1 parent 8230022 commit 0f484ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libyul/optimiser/UnusedFunctionParameterPruner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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] = {
Expand Down
2 changes: 0 additions & 2 deletions test/tools/yulInterpreter/Interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@

#include <libsolutil/FixedHash.h>

#include <boost/algorithm/cxx11/all_of.hpp>

#include <range/v3/view/reverse.hpp>

#include <ostream>
Expand Down

0 comments on commit 0f484ec

Please sign in to comment.