diff --git a/src/lib/base/String.cpp b/src/lib/base/String.cpp index 953597be6..390a7a32d 100644 --- a/src/lib/base/String.cpp +++ b/src/lib/base/String.cpp @@ -319,11 +319,5 @@ bool CaselessCmp::cmpLess(const std::string::value_type &a, const std::string::v return tolower(a) < tolower(b); } -bool CaselessCmp::cmpEqual(const std::string::value_type &a, const std::string::value_type &b) -{ - // should use std::tolower but not in all versions of libstdc++ have it - return tolower(a) == tolower(b); -} - } // namespace string } // namespace deskflow diff --git a/src/lib/base/String.h b/src/lib/base/String.h index 8fd6f7fd5..9b8c1c4ab 100644 --- a/src/lib/base/String.h +++ b/src/lib/base/String.h @@ -136,9 +136,6 @@ public: //! Returns true iff \c a is lexicographically less than \c b static bool cmpLess(const std::string::value_type &a, const std::string::value_type &b); - - //! Returns true iff \c a is lexicographically equal to \c b - static bool cmpEqual(const std::string::value_type &a, const std::string::value_type &b); }; } // namespace string