remove BufferIterator::clamp

This commit is contained in:
Maxime Coste 2013-05-30 14:00:41 +02:00
parent 5e64f6d1ec
commit d2df6a9f15
2 changed files with 0 additions and 8 deletions

View File

@ -61,8 +61,6 @@ public:
BufferIterator& operator=(const BufferCoord& coord);
operator const BufferCoord&() const { return m_coord; }
void clamp(bool avoid_eol);
bool is_begin() const;
bool is_end() const;
bool is_valid() const;

View File

@ -23,12 +23,6 @@ inline bool BufferIterator::is_valid() const
return m_buffer and m_buffer->is_valid(m_coord);
}
inline void BufferIterator::clamp(bool avoid_eol)
{
kak_assert(m_buffer);
m_coord = m_buffer->clamp(m_coord, avoid_eol);
}
inline bool BufferIterator::operator==(const BufferIterator& iterator) const
{
return (m_buffer == iterator.m_buffer and m_coord == iterator.m_coord);