summaryrefslogtreecommitdiff
path: root/src/core/common/Utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/common/Utils.cpp')
-rw-r--r--src/core/common/Utils.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/core/common/Utils.cpp b/src/core/common/Utils.cpp
index f8b53c6..a77951e 100644
--- a/src/core/common/Utils.cpp
+++ b/src/core/common/Utils.cpp
@@ -21,7 +21,6 @@
#include <string>
#include "Utils.hpp"
-#include "WhitespaceHandler.hpp"
namespace ousia {
@@ -115,13 +114,6 @@ std::string Utils::trim(const std::string &s)
return s.substr(bounds.first, bounds.second - bounds.first);
}
-std::string Utils::collapse(const std::string &s)
-{
- CollapsingWhitespaceHandler h;
- appendToWhitespaceHandler(h, s, 0);
- return h.toString();
-}
-
bool Utils::startsWith(const std::string &s, const std::string &prefix)
{
return prefix.size() <= s.size() && s.substr(0, prefix.size()) == prefix;