From f43d206e4e39d05a09350cc5626d167019c5ef2a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 26 Mar 2012 23:13:09 +0000 Subject: [PATCH] remove unused measure_string from window.cc --- src/window.cc | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/window.cc b/src/window.cc index 47e6d9a6..e8aa4a4e 100644 --- a/src/window.cc +++ b/src/window.cc @@ -25,29 +25,6 @@ Window::Window(Buffer& buffer) registry.add_highlighter_to_window(*this, "highlight_selections", HighlighterParameters()); } -template -static DisplayCoord measure_string(Iterator begin, Iterator end) -{ - DisplayCoord result(0, 0); - while (begin != end) - { - if (*begin == '\n') - { - ++result.line; - result.column = 0; - } - else - ++result.column; - ++begin; - } - return result; -} - -static DisplayCoord measure_string(const String& string) -{ - return measure_string(string.begin(), string.end()); -} - BufferIterator Window::iterator_at(const DisplayCoord& window_pos) const { if (m_display_buffer.begin() == m_display_buffer.end())