buffer: remove too slow check from check_invariant

This commit is contained in:
Maxime Coste 2013-02-22 18:38:53 +01:00
parent 5c74f98757
commit 4b11f73f1e

View File

@ -232,7 +232,6 @@ void Buffer::check_invariant() const
assert(line.start == start);
assert(line.length() > 0);
assert(line.content.back() == '\n');
assert(find(line.content, '\n') == line.content.end()-1);
start += line.length();
}
}