diff options
author | Stefan Beller <sbeller@google.com> | 2015-07-30 17:19:16 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-07-31 08:49:33 -0700 |
commit | 45abdee662186daa43e8ead8a8d0bcfaed5fa73d (patch) | |
tree | f5bcd0101a76c7390dab1b30e85a0f644c42751b | |
parent | 053a6b18074e12876d60da952d8a668631b21a64 (diff) | |
download | git-45abdee662186daa43e8ead8a8d0bcfaed5fa73d.tar.gz git-45abdee662186daa43e8ead8a8d0bcfaed5fa73d.tar.xz |
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.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin/add.c b/builtin/add.c index de79f35ef..fc7bf9f4c 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) |