diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-11-10 23:06:57 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-11-10 23:06:57 +0000 |
| commit | 7bd3f4306ddb030d6f7c70f3bcb0fa4e9b6ac4b4 (patch) | |
| tree | a6760d3fca71a629512555a44e4cc0aa1808b7cb /src/buffer.inl.hh | |
| parent | 217dd6a1de9aae487955826fe0ca8f17eff8483d (diff) | |
Remove useless checks, buffer has always at list one line
Diffstat (limited to 'src/buffer.inl.hh')
| -rw-r--r-- | src/buffer.inl.hh | 2 |
1 files changed, 0 insertions, 2 deletions
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() }; } |
