From c7876f0ba3da1ea4e5202b824f0e9db5e8702249 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 18 Oct 2011 00:56:18 +0000 Subject: [PATCH] DisplayBuffer: remove some check_invariant, overhead is too noticeable --- src/display_buffer.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/display_buffer.cc b/src/display_buffer.cc index fc5b7bb7..c0e6ec77 100644 --- a/src/display_buffer.cc +++ b/src/display_buffer.cc @@ -81,7 +81,6 @@ DisplayBuffer::DisplayBuffer() DisplayBuffer::iterator DisplayBuffer::insert(iterator where, const DisplayAtom& atom) { - check_invariant(); iterator res = m_atoms.insert(where, atom); check_invariant(); return res; @@ -102,7 +101,6 @@ DisplayBuffer::iterator DisplayBuffer::split(iterator atom, const BufferIterator assert(atom < end()); assert(pos > atom->begin()); assert(pos < atom->end()); - check_invariant(); DisplayAtom new_atom(atom->coord(), atom->begin(), pos, atom->fg_color(), atom->bg_color(), atom->attribute());