From 45abdee662186daa43e8ead8a8d0bcfaed5fa73d Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Thu, 30 Jul 2015 17:19:16 -0700 Subject: [PATCH] add: remove dead code Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- builtin/add.c | 2 -- 1 file changed, 2 deletions(-) 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) -- 2.43.2