summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-03-22 20:40:33 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-03-22 20:40:33 -0700
commitde7b966be4c3ec8511e2db7c2b7b3c97d32b6502 (patch)
treeb89eb04c908b8459602db6743e2872ba36a24814
parentab3f05057ba78d45ff3a36ceee252eec6429e633 (diff)
downloadtxr-de7b966be4c3ec8511e2db7c2b7b3c97d32b6502.tar.gz
txr-de7b966be4c3ec8511e2db7c2b7b3c97d32b6502.tar.bz2
txr-de7b966be4c3ec8511e2db7c2b7b3c97d32b6502.zip
Remove useless consume_prefix call.
* match.c (search_match): Calling consume_prefix from this function does nothing because it does not advance c->pos, and so it is hereby removed. This was introduced in commit fce7c87fa0099e5414607676fc73c9dfa9d7649c on 2012-02-11, at the same time when consume_prefix was introduced.
-rw-r--r--match.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/match.c b/match.c
index 4a34b544..98c2ee6c 100644
--- a/match.c
+++ b/match.c
@@ -529,8 +529,6 @@ static val search_match(match_line_ctx *c, val from_end, val spec)
new_pos = minus(new_pos, c->base);
return cons(pos, minus(new_pos, pos));
}
-
- consume_prefix(c);
}
return nil;