summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2015-07-31 00:19:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-07-31 15:49:33 (GMT)
commit45abdee662186daa43e8ead8a8d0bcfaed5fa73d (patch)
treef5bcd0101a76c7390dab1b30e85a0f644c42751b
parent053a6b18074e12876d60da952d8a668631b21a64 (diff)
downloadgit-45abdee662186daa43e8ead8a8d0bcfaed5fa73d.zip
git-45abdee662186daa43e8ead8a8d0bcfaed5fa73d.tar.gz
git-45abdee662186daa43e8ead8a8d0bcfaed5fa73d.tar.bz2
add: remove dead code
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin/add.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin/add.c b/builtin/add.c
index de79f35..fc7bf9f 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)