From bd504058d9589ca55901495b9e5f842ffaa5bce6 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 6 Jun 2013 13:58:27 +0200 Subject: [PATCH] remove unused Buffer::char_at --- src/buffer.cc | 6 ------ src/buffer.hh | 1 - 2 files changed, 7 deletions(-) diff --git a/src/buffer.cc b/src/buffer.cc index bca676a6..31bd65b8 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -695,10 +695,4 @@ char Buffer::byte_at(const BufferCoord& c) const return m_lines[c.line].content[c.column]; } -Codepoint Buffer::char_at(const BufferCoord& c) const -{ - kak_assert(c.line < line_count() and c.column < m_lines[c.line].length()); - return utf8::codepoint(m_lines[c.line].content.begin() + (int)c.column); -} - } diff --git a/src/buffer.hh b/src/buffer.hh index 21ca016e..26fa584a 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -118,7 +118,6 @@ public: BufferCoord next(BufferCoord coord) const; BufferCoord prev(BufferCoord coord) const; - Codepoint char_at(const BufferCoord& c) const; BufferCoord char_next(BufferCoord coord) const; BufferCoord char_prev(BufferCoord coord) const;