mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-26 04:52:53 +03:00
remove BufferIterator::clamp
This commit is contained in:
parent
5e64f6d1ec
commit
d2df6a9f15
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user