summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorDelapouite <delapouite@gmail.com>2017-11-20 10:21:23 +0100
committerDelapouite <delapouite@gmail.com>2017-11-20 10:21:23 +0100
commit62912c6586522efe0d9c191c40ae3e1cc81b3346 (patch)
treeb98deacc713def7a887dbec5b74e4367519d98d2 /src/input_handler.cc
parent079b006cdab6f0ae594f80fff18ad61b71b0754d (diff)
Remove extraneous common_prefix in input_handler
Related to: 52525a156ff2a9f5c8c6fbb2e933ec412afb4728
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index efffcc30..a682215e 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -667,24 +667,6 @@ private:
LineEditor m_filter_editor;
};
-String common_prefix(ConstArrayView<String> strings)
-{
- String res;
- if (strings.empty())
- return res;
- res = strings[0];
- for (auto& str : strings)
- {
- ByteCount len = std::min(res.length(), str.length());
- ByteCount common_len = 0;
- while (common_len < len and str[common_len] == res[common_len])
- ++common_len;
- if (common_len != res.length())
- res = res.substr(0, common_len).str();
- }
- return res;
-}
-
static Optional<Codepoint> get_raw_codepoint(Key key)
{
if (auto cp = key.codepoint())