diff mbox series

[2/2] patience diff: remove unused variable

Message ID b38a4e02d4f1c8e77bbc8ed1e4e8507d41ab9fd8.1620120345.git.gitgitgadget@gmail.com (mailing list archive)
State Accepted
Commit f91371b9485932983e7dc81130e95dd176114829
Headers show
Series A couple of small patience diff cleanups | expand

Commit Message

Phillip Wood May 4, 2021, 9:25 a.m. UTC
From: Phillip Wood <phillip.wood@dunelm.org.uk>

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
---
 xdiff/xpatience.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/xdiff/xpatience.c b/xdiff/xpatience.c
index db2d53e89cb0..c5d48e80aefb 100644
--- a/xdiff/xpatience.c
+++ b/xdiff/xpatience.c
@@ -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,