Browse Source

Removed the unused string_removeAllWhiteSpace function.

David Piuva 5 years ago
parent
commit
b438bbaae3
2 changed files with 0 additions and 15 deletions
  1. 0 12
      Source/DFPSR/base/text.cpp
  2. 0 3
      Source/DFPSR/base/text.h

+ 0 - 12
Source/DFPSR/base/text.cpp

@@ -141,18 +141,6 @@ String dsr::string_lowerCase(const ReadableString &text) {
 	return result;
 	return result;
 }
 }
 
 
-String dsr::string_removeAllWhiteSpace(const ReadableString &text) {
-	String result;
-	result.reserve(text.length);
-	for (int64_t i = 0; i < text.length; i++) {
-		DsrChar c = text[i];
-		if (!character_isWhiteSpace(c)) {
-			result.appendChar(c);
-		}
-	}
-	return result;
-}
-
 ReadableString dsr::string_removeOuterWhiteSpace(const ReadableString &text) {
 ReadableString dsr::string_removeOuterWhiteSpace(const ReadableString &text) {
 	int64_t first = -1;
 	int64_t first = -1;
 	int64_t last = -1;
 	int64_t last = -1;

+ 0 - 3
Source/DFPSR/base/text.h

@@ -353,10 +353,7 @@ String string_upperCase(const ReadableString &text);
 // Post-condition: Returns text converted to lower case.
 // Post-condition: Returns text converted to lower case.
 String string_lowerCase(const ReadableString &text);
 String string_lowerCase(const ReadableString &text);
 
 
-// Post-condition: Returns a clone of text without any white-space (space, tab, carriage-return, null terminator, et cetera).
-String string_removeAllWhiteSpace(const ReadableString &text);
 // Post-condition: Returns a sub-set of text without surrounding white-space (space, tab and carriage-return).
 // Post-condition: Returns a sub-set of text without surrounding white-space (space, tab and carriage-return).
-// Unlike string_removeAllWhiteSpace, string_removeOuterWhiteSpace does not require allocating a new buffer.
 ReadableString string_removeOuterWhiteSpace(const ReadableString &text);
 ReadableString string_removeOuterWhiteSpace(const ReadableString &text);
 
 
 // Post-condition: Returns rawText wrapped in a quote.
 // Post-condition: Returns rawText wrapped in a quote.