diff --git a/src/buffer.hh b/src/buffer.hh index 4a1b3dcd..cc09831b 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -42,7 +42,6 @@ public: BufferIterator() : m_buffer(nullptr) {} BufferIterator(const Buffer& buffer, BufferCoord coord); - BufferIterator& operator=(const BufferIterator& iterator); bool operator== (const BufferIterator& iterator) const; bool operator!= (const BufferIterator& iterator) const; diff --git a/src/buffer_iterator.inl.hh b/src/buffer_iterator.inl.hh index 9970d4dd..56d7efa1 100644 --- a/src/buffer_iterator.inl.hh +++ b/src/buffer_iterator.inl.hh @@ -28,13 +28,6 @@ inline bool BufferIterator::is_valid() const column() == m_buffer->m_lines.back().length())); } -inline BufferIterator& BufferIterator::operator=(const BufferIterator& iterator) -{ - m_buffer = iterator.m_buffer; - m_coord = iterator.m_coord; - return *this; -} - inline bool BufferIterator::operator==(const BufferIterator& iterator) const { assert(m_buffer == iterator.m_buffer);