From 1ede3f6b13006b4270fbb1887b83b746a8d90ada Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 8 Aug 2012 18:51:30 +0200 Subject: [PATCH] BufferIterator: use default operator= --- src/buffer.hh | 1 - src/buffer_iterator.inl.hh | 7 ------- 2 files changed, 8 deletions(-) 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);