mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-28 09:07:19 +03:00
remove BufferIterator::is_valid()
This commit is contained in:
parent
a23aa10797
commit
777158e86d
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user