From 7635fc2cf9c07850a8a0ffc94818bf869794435b Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 22 Mar 2017 20:40:33 -0700 Subject: 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. --- match.c | 2 -- 1 file changed, 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; -- cgit v1.2.3