remove unused Buffer::char_at

This commit is contained in:
Maxime Coste 2013-06-06 13:58:27 +02:00
parent 12d3b64a1b
commit bd504058d9
2 changed files with 0 additions and 7 deletions

View File

@ -695,10 +695,4 @@ char Buffer::byte_at(const BufferCoord& c) const
return m_lines[c.line].content[c.column]; 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);
}
} }

View File

@ -118,7 +118,6 @@ public:
BufferCoord next(BufferCoord coord) const; BufferCoord next(BufferCoord coord) const;
BufferCoord prev(BufferCoord coord) const; BufferCoord prev(BufferCoord coord) const;
Codepoint char_at(const BufferCoord& c) const;
BufferCoord char_next(BufferCoord coord) const; BufferCoord char_next(BufferCoord coord) const;
BufferCoord char_prev(BufferCoord coord) const; BufferCoord char_prev(BufferCoord coord) const;