Skip to content

Commit 223b55a

Browse files
committed
Merge branch 'sb/remove-unused-var-from-builtin-add' into maint
* sb/remove-unused-var-from-builtin-add: add: remove dead code
2 parents 24493ff + 45abdee commit 223b55a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

builtin/add.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ int cmd_add(int argc, const char **argv, const char *prefix)
375375

376376
if (add_new_files) {
377377
int baselen;
378-
struct pathspec empty_pathspec;
379378

380379
/* Set up the default git porcelain excludes */
381380
memset(&dir, 0, sizeof(dir));
@@ -384,7 +383,6 @@ int cmd_add(int argc, const char **argv, const char *prefix)
384383
setup_standard_excludes(&dir);
385384
}
386385

387-
memset(&empty_pathspec, 0, sizeof(empty_pathspec));
388386
/* This picks up the paths that are not tracked */
389387
baselen = fill_directory(&dir, &pathspec);
390388
if (pathspec.nr)

0 commit comments

Comments
 (0)