From 6d59aa6bff5ee69ca8afaaf34227a33f0fb9d145 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 22 Feb 2015 22:59:18 +0100 Subject: Moved implementation of collapse to Utils, providing same interface for collapse and trim --- src/core/common/Utils.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/core/common/Utils.cpp') 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 #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; -- cgit v1.2.3