From: Shawn O. Pearce Date: Fri, 14 Sep 2007 07:31:13 +0000 (-0400) Subject: Remove unused unpacklimit variable from builtin-fetch X-Git-Tag: v1.5.4-rc0~292^2~58 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f1ae391e17be638a14c7505598b73430dbf328f1;p=git.git Remove unused unpacklimit variable from builtin-fetch Never referenced. This should actually be handled down inside of builtin-fetch-pack, not up here in the generic user frontend. Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- diff --git a/builtin-fetch.c b/builtin-fetch.c index 33b740cd1..a041df9fa 100644 --- a/builtin-fetch.c +++ b/builtin-fetch.c @@ -12,9 +12,6 @@ static const char fetch_usage[] = "git-fetch [-a | --append] [--upload-pack ] [-f | --force] [--no-tags] [-t | --tags] [-k | --keep] [-u | --update-head-ok] [--depth ] [-v | --verbose] [ ...]"; static int append, force, tags, no_tags, update_head_ok, verbose, quiet; - -static int unpacklimit; - static char *default_rla = NULL; static void find_merge_config(struct ref *ref_map, struct remote *remote) @@ -395,21 +392,6 @@ static int do_fetch(struct transport *transport, return 0; } -static int fetch_config(const char *var, const char *value) -{ - if (strcmp(var, "fetch.unpacklimit") == 0) { - unpacklimit = git_config_int(var, value); - return 0; - } - - if (strcmp(var, "transfer.unpacklimit") == 0) { - unpacklimit = git_config_int(var, value); - return 0; - } - - return git_default_config(var, value); -} - int cmd_fetch(int argc, const char **argv, const char *prefix) { struct remote *remote; @@ -421,8 +403,6 @@ int cmd_fetch(int argc, const char **argv, const char *prefix) const char *depth = NULL, *upload_pack = NULL; int keep = 0; - git_config(fetch_config); - for (i = 1; i < argc; i++) { const char *arg = argv[i]; cmd_len += strlen(arg);