Use internal string trim functions instead of boost algorithm

This commit is contained in:
Joakim Hove
2020-02-13 09:18:39 +01:00
parent 9ac9e53d68
commit 36662b2734
5 changed files with 54 additions and 6 deletions

View File

@@ -23,10 +23,9 @@
#include <stdexcept>
#include <iostream>
#include <boost/algorithm/string.hpp>
#include <opm/common/OpmLog/LogUtil.hpp>
#include <opm/parser/eclipse/Utility/String.hpp>
#include <opm/parser/eclipse/Deck/DeckItem.hpp>
#include <opm/parser/eclipse/Deck/DeckKeyword.hpp>
#include <opm/parser/eclipse/Deck/DeckRecord.hpp>
@@ -96,7 +95,7 @@ namespace {
*/
std::string trim_wgname(const DeckKeyword& keyword, const std::string& wgname_arg, const ParseContext& parseContext, ErrorGuard errors) {
std::string wgname = boost::algorithm::trim_copy(wgname_arg);
std::string wgname = trim_copy(wgname_arg);
if (wgname != wgname_arg) {
const auto& location = keyword.location();
std::string msg = "Illegal space: \"" + wgname_arg + "\" found when defining WELL/GROUP in keyword: " + keyword.name() + " at " + location.filename + ":" + std::to_string(location.lineno);