diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-03-22 20:40:33 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-03-22 20:40:33 -0700 |
commit | de7b966be4c3ec8511e2db7c2b7b3c97d32b6502 (patch) | |
tree | b89eb04c908b8459602db6743e2872ba36a24814 | |
parent | ab3f05057ba78d45ff3a36ceee252eec6429e633 (diff) | |
download | txr-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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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; |