From: Junio C Hamano Date: Wed, 12 Aug 2015 21:09:58 +0000 (-0700) Subject: Merge branch 'sb/remove-unused-var-from-builtin-add' X-Git-Tag: v2.6.0-rc0~72 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/fde61a0f72ccf86114f07353d93783b3b5ef4f57?hp=535efaf6beb039b9f3b6f6c0f2b526eb8d02f99b Merge branch 'sb/remove-unused-var-from-builtin-add' * sb/remove-unused-var-from-builtin-add: add: remove dead code --- diff --git a/builtin/add.c b/builtin/add.c index 4bd98b799e..b2a5c57f0a 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -375,7 +375,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)); @@ -384,7 +383,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)