diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-03-26 23:13:09 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-03-26 23:13:09 +0000 |
| commit | f43d206e4e39d05a09350cc5626d167019c5ef2a (patch) | |
| tree | 88e5c610a26ff20059f8651c5f06276ff61c4327 /src | |
| parent | 63d1c4471cf30b651c46ae51d8a4eba67c946504 (diff) | |
remove unused measure_string from window.cc
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.cc | 23 |
1 files changed, 0 insertions, 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<typename Iterator> -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()) |
