From 777158e86dd284014657e572fd4c49ca947d6812 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 4 Jun 2013 18:56:28 +0200 Subject: [PATCH] remove BufferIterator::is_valid() --- src/buffer.hh | 2 -- src/buffer_iterator.inl.hh | 7 +------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/buffer.hh b/src/buffer.hh index 7fba5fdc..b2d5c793 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -62,8 +62,6 @@ public: BufferIterator& operator=(const BufferCoord& coord); operator const BufferCoord&() const { return m_coord; } - bool is_valid() const; - const BufferCoord& coord() const { return m_coord; } private: diff --git a/src/buffer_iterator.inl.hh b/src/buffer_iterator.inl.hh index 6955ed4e..362ed82a 100644 --- a/src/buffer_iterator.inl.hh +++ b/src/buffer_iterator.inl.hh @@ -9,12 +9,7 @@ namespace Kakoune inline BufferIterator::BufferIterator(const Buffer& buffer, BufferCoord coord) : m_buffer(&buffer), m_coord(coord) { - kak_assert(is_valid()); -} - -inline bool BufferIterator::is_valid() const -{ - return m_buffer and m_buffer->is_valid(m_coord); + kak_assert(m_buffer and m_buffer->is_valid(m_coord)); } inline bool BufferIterator::operator==(const BufferIterator& iterator) const