Skip to content

Commit 8c70c63

Browse files
committed
Removed String::trim function, in favour in trim template functions
1 parent 0fd65cd commit 8c70c63

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/utils.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,6 @@ std::istream& StreamHandler::skip_to_next_blank_line(std::istream& stream, std::
6565
return stream;
6666
}
6767

68-
std::string String::trim(const std::string& line) {
69-
const char* WhiteSpace = " \t\v\r\n";
70-
std::size_t start = line.find_first_not_of(WhiteSpace);
71-
std::size_t end = line.find_last_not_of(WhiteSpace);
72-
return start == end ? std::string() : line.substr(start, end - start + 1);
73-
}
74-
7568
double String::convert_to_double(const std::string& value, double default_value) {
7669
double converted_value = default_value;
7770
// NOLINTNEXTLINE -- Trying to iterators on the value causes the test to infinitly hang on windows builds

0 commit comments

Comments
 (0)