DisplayBuffer: remove some check_invariant, overhead is too noticeable

This commit is contained in:
Maxime Coste 2011-10-18 00:56:18 +00:00
parent 8cab34d57f
commit c7876f0ba3

View File

@ -81,7 +81,6 @@ DisplayBuffer::DisplayBuffer()
DisplayBuffer::iterator DisplayBuffer::insert(iterator where, const DisplayAtom& atom) DisplayBuffer::iterator DisplayBuffer::insert(iterator where, const DisplayAtom& atom)
{ {
check_invariant();
iterator res = m_atoms.insert(where, atom); iterator res = m_atoms.insert(where, atom);
check_invariant(); check_invariant();
return res; return res;
@ -102,7 +101,6 @@ DisplayBuffer::iterator DisplayBuffer::split(iterator atom, const BufferIterator
assert(atom < end()); assert(atom < end());
assert(pos > atom->begin()); assert(pos > atom->begin());
assert(pos < atom->end()); assert(pos < atom->end());
check_invariant();
DisplayAtom new_atom(atom->coord(), atom->begin(), pos, DisplayAtom new_atom(atom->coord(), atom->begin(), pos,
atom->fg_color(), atom->bg_color(), atom->attribute()); atom->fg_color(), atom->bg_color(), atom->attribute());