From 7ddc01a5e03ccb068382aa1df9934591ec9824fb Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Mon, 4 Dec 2017 11:36:17 +0100 Subject: [PATCH] delta: check if a prefix needs to be skipped only once The condition is already tested later by process_fix() therefore there's no need the check in process_suffix_chop() since it will end up calling process_fix() anyways. --- src/delta/delta.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/delta/delta.c b/src/delta/delta.c index d286881698..f626537438 100644 --- a/src/delta/delta.c +++ b/src/delta/delta.c @@ -520,13 +520,6 @@ static int process_suffix_chop(const char *arg) { /* Strip prefix from the suffix */ NULSTR_FOREACH(p, prefixes) { const char *suffix; - int skip; - - skip = should_skip_prefix(p); - if (skip < 0) - return skip; - if (skip) - continue; suffix = startswith(arg, p); if (suffix) {