aboutsummaryrefslogtreecommitdiff
path: root/text-motions.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-02-15 08:20:48 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-02-15 08:20:48 +0100
commitd266238916882b4082b3ddbb71941aea5e7d20ef (patch)
treef4f1a96cf14cba2c73e233150fab9b43fca3fb67 /text-motions.c
parent05f4d783c369cba54156b0d7e8269efd9d81ff96 (diff)
downloadvis-d266238916882b4082b3ddbb71941aea5e7d20ef.tar.gz
vis-d266238916882b4082b3ddbb71941aea5e7d20ef.tar.xz
text-motions: remove unused text_line_lastchar
Diffstat (limited to 'text-motions.c')
-rw-r--r--text-motions.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/text-motions.c b/text-motions.c
index 884d95c..f5701ae 100644
--- a/text-motions.c
+++ b/text-motions.c
@@ -158,14 +158,6 @@ size_t text_line_finish(Text *txt, size_t pos) {
return it.pos;
}
-size_t text_line_lastchar(Text *txt, size_t pos) {
- char c;
- Iterator it = text_iterator_get(txt, text_line_end(txt, pos));
- if (text_iterator_char_prev(&it, &c) && c == '\n')
- text_iterator_byte_next(&it, NULL);
- return it.pos;
-}
-
size_t text_line_end(Text *txt, size_t pos) {
char c;
Iterator it = text_iterator_get(txt, pos);