]> git.ipfire.org Git - thirdparty/git.git/commitdiff
patience diff: remove unused variable
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Tue, 4 May 2021 09:25:45 +0000 (09:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 May 2021 09:56:48 +0000 (18:56 +0900)
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff/xpatience.c

index 0329911f766f0e8a0b18180de2283bea5fd25039..e46fadd29e8f95833e726af9aa15bf16f5f06056 100644 (file)
@@ -284,9 +284,6 @@ static int walk_common_sequence(struct hashmap *map, struct entry *first,
 
                /* Recurse */
                if (next1 > line1 || next2 > line2) {
-                       struct hashmap submap;
-
-                       memset(&submap, 0, sizeof(submap));
                        if (patience_diff(map->file1, map->file2,
                                        map->xpp, map->env,
                                        line1, next1 - line1,