From a23aa10797ca9bc4c54188648753eac07afbb570 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 4 Jun 2013 18:55:06 +0200 Subject: [PATCH] remove BufferIterator::buffer() --- src/buffer.hh | 1 - src/buffer_iterator.inl.hh | 6 ------ 2 files changed, 7 deletions(-) diff --git a/src/buffer.hh b/src/buffer.hh index 5092b7e9..7fba5fdc 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -64,7 +64,6 @@ public: bool is_valid() const; - const Buffer& buffer() const; const BufferCoord& coord() const { return m_coord; } private: diff --git a/src/buffer_iterator.inl.hh b/src/buffer_iterator.inl.hh index 86d906ac..6955ed4e 100644 --- a/src/buffer_iterator.inl.hh +++ b/src/buffer_iterator.inl.hh @@ -12,12 +12,6 @@ inline BufferIterator::BufferIterator(const Buffer& buffer, BufferCoord coord) kak_assert(is_valid()); } -inline const Buffer& BufferIterator::buffer() const -{ - kak_assert(m_buffer); - return *m_buffer; -} - inline bool BufferIterator::is_valid() const { return m_buffer and m_buffer->is_valid(m_coord);