From: Stefan Beller Date: Fri, 31 Jul 2015 00:19:16 +0000 (-0700) Subject: add: remove dead code X-Git-Tag: v2.5.1~9^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/45abdee662186daa43e8ead8a8d0bcfaed5fa73d add: remove dead code Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- diff --git a/builtin/add.c b/builtin/add.c index de79f35efc..fc7bf9f4ca 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -419,7 +419,6 @@ int cmd_add(int argc, const char **argv, const char *prefix) if (add_new_files) { int baselen; - struct pathspec empty_pathspec; /* Set up the default git porcelain excludes */ memset(&dir, 0, sizeof(dir)); @@ -428,7 +427,6 @@ int cmd_add(int argc, const char **argv, const char *prefix) setup_standard_excludes(&dir); } - memset(&empty_pathspec, 0, sizeof(empty_pathspec)); /* This picks up the paths that are not tracked */ baselen = fill_directory(&dir, &pathspec); if (pathspec.nr)