buffer: remove too slow check from check_invariant
This commit is contained in:
parent
5c74f98757
commit
4b11f73f1e
|
@ -232,7 +232,6 @@ void Buffer::check_invariant() const
|
||||||
assert(line.start == start);
|
assert(line.start == start);
|
||||||
assert(line.length() > 0);
|
assert(line.length() > 0);
|
||||||
assert(line.content.back() == '\n');
|
assert(line.content.back() == '\n');
|
||||||
assert(find(line.content, '\n') == line.content.end()-1);
|
|
||||||
start += line.length();
|
start += line.length();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user