add: remove dead code

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Stefan Beller 2015-07-30 17:19:16 -07:00 committed by Junio C Hamano
parent 053a6b1807
commit 45abdee662
1 changed files with 0 additions and 2 deletions

View File

@ -419,7 +419,6 @@ int cmd_add(int argc, const char **argv, const char *prefix)


if (add_new_files) { if (add_new_files) {
int baselen; int baselen;
struct pathspec empty_pathspec;


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


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