Skip to content

Commit 45abdee

Browse files
stefanbellergitster
authored andcommitted
add: remove dead code
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 053a6b1 commit 45abdee

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

builtin/add.c

-2
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,6 @@ int cmd_add(int argc, const char **argv, const char *prefix)
419419

420420
if (add_new_files) {
421421
int baselen;
422-
struct pathspec empty_pathspec;
423422

424423
/* Set up the default git porcelain excludes */
425424
memset(&dir, 0, sizeof(dir));
@@ -428,7 +427,6 @@ int cmd_add(int argc, const char **argv, const char *prefix)
428427
setup_standard_excludes(&dir);
429428
}
430429

431-
memset(&empty_pathspec, 0, sizeof(empty_pathspec));
432430
/* This picks up the paths that are not tracked */
433431
baselen = fill_directory(&dir, &pathspec);
434432
if (pathspec.nr)

0 commit comments

Comments
 (0)