From 7bd3f4306ddb030d6f7c70f3bcb0fa4e9b6ac4b4 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 10 Nov 2015 23:06:57 +0000 Subject: Remove useless checks, buffer has always at list one line --- src/buffer.inl.hh | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/buffer.inl.hh') diff --git a/src/buffer.inl.hh b/src/buffer.inl.hh index 65474f7d..499d63f2 100644 --- a/src/buffer.inl.hh +++ b/src/buffer.inl.hh @@ -102,8 +102,6 @@ inline ByteCoord Buffer::back_coord() const inline ByteCoord Buffer::end_coord() const { - if (m_lines.empty()) - return { 0_line, 0 }; return { line_count() - 1, m_lines.back().length() }; } -- cgit v1.2.3