aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'text.c')
-rw-r--r--text.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/text.c b/text.c
index b0517bb..8dc6d97 100644
--- a/text.c
+++ b/text.c
@@ -1628,8 +1628,6 @@ size_t text_lineno_by_pos(Text *txt, size_t pos) {
}
Mark text_mark_set(Text *txt, size_t pos) {
- if (pos == 0)
- return (Mark)&txt->begin;
if (pos == txt->size)
return (Mark)&txt->end;
Location loc = piece_get_extern(txt, pos);
@@ -1643,8 +1641,6 @@ size_t text_mark_get(Text *txt, Mark mark) {
if (mark == EMARK)
return EPOS;
- if (mark == (Mark)&txt->begin)
- return 0;
if (mark == (Mark)&txt->end)
return txt->size;