Use internal string trim functions instead of boost algorithm
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user