summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.cc23
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())