diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-05-30 14:00:41 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-05-30 14:00:41 +0200 |
| commit | d2df6a9f1508d8faa8760f7df3b3f404cdefd656 (patch) | |
| tree | cc2f816c314eb183da6f620b83c07aa244456933 /src | |
| parent | 5e64f6d1ec9b95ca4936aea5a4d2a52a3833eb28 (diff) | |
remove BufferIterator::clamp
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.hh | 2 | ||||
| -rw-r--r-- | src/buffer_iterator.inl.hh | 6 |
2 files changed, 0 insertions, 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); |
