From dc851fe4b24623e80b7db1a60299544747f73c4b Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 17 Dec 2016 16:54:11 -0500 Subject: [PATCH] util: Migrated obfuscateText calls to libshared --- src/util.cpp | 32 -------------------------------- src/util.h | 1 - 2 files changed, 33 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index 1752b39c1..747eb1f34 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -286,38 +286,6 @@ std::string osName () #endif } -//////////////////////////////////////////////////////////////////////////////// -const std::string obfuscateText (const std::string& input) -{ - std::stringstream output; - std::string::size_type i = 0; - int character; - bool inside = false; - - while ((character = utf8_next_char (input, i))) - { - if (inside) - { - output << (char) character; - - if (character == 'm') - inside = false; - } - else - { - if (character == 033) - inside = true; - - if (inside || character == ' ') - output << (char) character; - else - output << 'x'; - } - } - - return output.str (); -} - //////////////////////////////////////////////////////////////////////////////// bool nontrivial (const std::string& input) { diff --git a/src/util.h b/src/util.h index c1ed270ef..fd06f6535 100644 --- a/src/util.h +++ b/src/util.h @@ -61,7 +61,6 @@ const std::vector extractParents ( #endif std::string osName (); -const std::string obfuscateText (const std::string&); bool nontrivial (const std::string&); int strippedLength (const std::string&); const char* optionalBlankLine ();