add: remove dead code
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Stefan Beller committed
Jul 30, 2015 at 17:19 UTC
45abdee662186daa43e8ead8a8d0bcfaed5fa73d
1 file changed
-2
builtin/add.c
-2
@@ -419,7 +419,6 @@ int cmd_add(int argc, const char **argv, const char *prefix)
419
420
if (add_new_files) {
421
int baselen;
422
- struct pathspec empty_pathspec;
422
423
/* Set up the default git porcelain excludes */
424
memset(&dir, 0, sizeof(dir));
@@ -428,7 +427,6 @@ int cmd_add(int argc, const char **argv, const char *prefix)
427
setup_standard_excludes(&dir);
428
}
429
431
- memset(&empty_pathspec, 0, sizeof(empty_pathspec));
430
/* This picks up the paths that are not tracked */
431
baselen = fill_directory(&dir, &pathspec);
432
if (pathspec.nr)