From d2df6a9f1508d8faa8760f7df3b3f404cdefd656 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 30 May 2013 14:00:41 +0200 Subject: [PATCH] remove BufferIterator::clamp --- src/buffer.hh | 2 -- src/buffer_iterator.inl.hh | 6 ------ 2 files changed, 8 deletions(-) diff --git a/src/buffer.hh b/src/buffer.hh index de37cc1c..03b96b34 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -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; diff --git a/src/buffer_iterator.inl.hh b/src/buffer_iterator.inl.hh index 7008e0ec..fb3a8a1d 100644 --- a/src/buffer_iterator.inl.hh +++ b/src/buffer_iterator.inl.hh @@ -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);