diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-06-06 13:58:27 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-06-06 19:44:07 +0200 |
| commit | bd504058d9589ca55901495b9e5f842ffaa5bce6 (patch) | |
| tree | d59c4f38f0b7ac639b171721e09c178a93044c63 /src | |
| parent | 12d3b64a1b0e156a35c6ddce93ea7d5472788754 (diff) | |
remove unused Buffer::char_at
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.cc | 6 | ||||
| -rw-r--r-- | src/buffer.hh | 1 |
2 files changed, 0 insertions, 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; |
