From fdb4c1f1bce961d32516470b717c8d6876a9ab32 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 7 Sep 2014 16:35:51 -0400 Subject: [PATCH] Code Cleanup - Removed unused text.cpp visible function. --- src/text.cpp | 22 ---------------------- src/text.h | 1 - 2 files changed, 23 deletions(-) diff --git a/src/text.cpp b/src/text.cpp index 7fd2e869a..993a7342d 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -524,28 +524,6 @@ bool isPunctuation (char c) return ispunct (c); } -//////////////////////////////////////////////////////////////////////////////// -std::string visible (char input) -{ - // Sanitize 'message'. - char stringized[2] = {0}; - stringized[0] = input; - - std::string sanitized = stringized; - switch (input) - { - case ' ': sanitized = "\\s"; break; - case '\r': sanitized = "\\r"; break; - case '\n': sanitized = "\\n"; break; - case '\f': sanitized = "\\f"; break; - case '\t': sanitized = "\\t"; break; - case '\v': sanitized = "\\v"; break; - default: sanitized = input; break; - } - - return sanitized; -} - //////////////////////////////////////////////////////////////////////////////// bool compare ( const std::string& left, diff --git a/src/text.h b/src/text.h index 5e3596e7c..542dbdabc 100644 --- a/src/text.h +++ b/src/text.h @@ -54,7 +54,6 @@ bool nontrivial (const std::string&); bool digitsOnly (const std::string&); bool noSpaces (const std::string&); bool isPunctuation (char); -std::string visible (char); bool compare (const std::string&, const std::string&, bool sensitive = true); bool closeEnough (const std::string&, const std::string&, unsigned int minLength = 0); std::string::size_type find (const std::string&, const std::string&, bool sensitive = true);