summaryrefslogtreecommitdiff
path: root/src/buffer_utils.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer_utils.hh')
-rw-r--r--src/buffer_utils.hh14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/buffer_utils.hh b/src/buffer_utils.hh
index bd617595..f47c2c26 100644
--- a/src/buffer_utils.hh
+++ b/src/buffer_utils.hh
@@ -24,20 +24,6 @@ inline CharCount char_length(const Buffer& buffer, const Selection& range)
utf8::next(buffer.iterator_at(range.max())));
}
-inline void avoid_eol(const Buffer& buffer, ByteCoord& coord)
-{
- const auto column = coord.column;
- const auto& line = buffer[coord.line];
- if (column != 0 and column == line.length() - 1)
- coord.column = line.byte_count_to(line.char_length() - 2);
-}
-
-inline void avoid_eol(const Buffer& buffer, Selection& sel)
-{
- avoid_eol(buffer, sel.anchor());
- avoid_eol(buffer, sel.cursor());
-}
-
CharCount get_column(const Buffer& buffer,
CharCount tabstop, ByteCoord coord);