BufferIterator: use default operator=

This commit is contained in:
Maxime Coste 2012-08-08 18:51:30 +02:00
parent 939dc0fa8e
commit 1ede3f6b13
2 changed files with 0 additions and 8 deletions

View File

@ -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;

View File

@ -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);