Replaced boost remove_erase and remove_erase_if

This commit is contained in:
anurag4u80
2021-04-24 08:10:41 +05:30
parent f162c484ca
commit c4cf412fed
8 changed files with 14 additions and 18 deletions
+2 -2
View File
@@ -27,7 +27,7 @@
#include <liblangutil/Token.h>
#include <libsolutil/CommonData.h>
#include <boost/range/algorithm_ext/erase.hpp>
#include <range/v3/action/remove_if.hpp>
using namespace std;
using namespace solidity;
@@ -40,7 +40,7 @@ void yul::removeEmptyBlocks(Block& _block)
auto isEmptyBlock = [](Statement const& _st) -> bool {
return holds_alternative<Block>(_st) && std::get<Block>(_st).statements.empty();
};
boost::range::remove_erase_if(_block.statements, isEmptyBlock);
ranges::actions::remove_if(_block.statements, isEmptyBlock);
}
bool yul::isRestrictedIdentifier(Dialect const& _dialect, YulString const& _identifier)