From 52d1b6b97de4795818ad4221923a67274b7e23bb Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 19 Nov 2016 23:12:49 -0800 Subject: [PATCH] Remove some dead functions icompare_pred and icompare in history.cpp are unused --- src/history.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/history.cpp b/src/history.cpp index 11fb59d5b..c48163a7f 100644 --- a/src/history.cpp +++ b/src/history.cpp @@ -791,15 +791,6 @@ void history_t::add(const wcstring &str, history_identifier_t ident, bool pendin this->add(history_item_t(str, when, ident), pending); } -bool icompare_pred(wchar_t a, wchar_t b) { return std::tolower(a) == std::tolower(b); } - -bool icompare(wcstring const &a, wcstring const &b) { - if (a.length() != b.length()) { - return false; - } - return std::equal(b.begin(), b.end(), a.begin(), icompare_pred); -} - // Remove matching history entries from our list of new items. This only supports literal, // case-sensitive, matches. void history_t::remove(const wcstring &str_to_remove) {