From: Adam Spiers Date: Thu, 27 Dec 2012 02:32:34 GMT Subject: [PATCH v3 15/19] add.c: remove unused argument from validate_pathspec() Message-ID: <1356575558-2674-16-git-send-email-git@adamspiers.org> In-Reply-To: <1356575558-2674-1-git-send-email-git@adamspiers.org> The 'argc' argument passed to validate_pathspec() was never used. Signed-off-by: Adam Spiers --- builtin/add.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/add.c b/builtin/add.c index 856d232..1ba2a86 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -211,7 +211,7 @@ static void refresh(int verbose, const char **pathspec) free(seen); } -static const char **validate_pathspec(int argc, const char **argv, const char *prefix) +static const char **validate_pathspec(const char **argv, const char *prefix) { const char **pathspec = get_pathspec(prefix, argv); @@ -262,7 +262,7 @@ int interactive_add(int argc, const char **argv, const char *prefix, int patch) const char **pathspec = NULL; if (argc) { - pathspec = validate_pathspec(argc, argv, prefix); + pathspec = validate_pathspec(argv, prefix); if (!pathspec) return -1; } @@ -428,7 +428,7 @@ int cmd_add(int argc, const char **argv, const char *prefix) fprintf(stderr, _("Maybe you wanted to say 'git add .'?\n")); return 0; } - pathspec = validate_pathspec(argc, argv, prefix); + pathspec = validate_pathspec(argv, prefix); if (read_cache() < 0) die(_("index file corrupt")); -- 1.7.11.2.249.g31c7954