summaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-02-22 18:38:53 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-02-22 18:38:53 +0100
commit4b11f73f1e8f15ccf24339637c1f0fc5d2bb56b7 (patch)
tree231a9d11b1c88cf2f17c7658396e66cc6eebabaa /src/buffer.cc
parent5c74f98757371560bda5f6c0816f93d94e099eb7 (diff)
buffer: remove too slow check from check_invariant
Diffstat (limited to 'src/buffer.cc')
-rw-r--r--src/buffer.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/buffer.cc b/src/buffer.cc
index 2bf5db95..3c919c19 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -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();
}
}