summaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2007-12-10 22:36:07 +0100
committerJunio C Hamano <gitster@pobox.com>2007-12-14 21:31:59 -0800
commitc20f290808efb85fbc7a57e7bc6eddeb4a0208a8 (patch)
treeb7e9b4f58b397ef60b6a0d792276bb70c4fbf23c /http-push.c
parenta096bb18af5b7214d9b87b64ae733d106eb96544 (diff)
downloadgit-c20f290808efb85fbc7a57e7bc6eddeb4a0208a8.tar.gz
Remove the default_headers variable from http-push.c
It appears that despite being initialized, it was never used. Signed-off-by: Mike Hommey <mh@glandium.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-push.c')
-rw-r--r--http-push.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/http-push.c b/http-push.c
index c96e43da16..176bb29fab 100644
--- a/http-push.c
+++ b/http-push.c
@@ -75,7 +75,6 @@ static int aborted;
static signed char remote_dir_exists[256];
static struct curl_slist *no_pragma_header;
-static struct curl_slist *default_headers;
static int push_verbosely;
static int push_all = MATCH_REFS_NONE;
@@ -2364,11 +2363,6 @@ int main(int argc, char **argv)
http_init();
no_pragma_header = curl_slist_append(no_pragma_header, "Pragma:");
- default_headers = curl_slist_append(default_headers, "Range:");
- default_headers = curl_slist_append(default_headers, "Destination:");
- default_headers = curl_slist_append(default_headers, "If:");
- default_headers = curl_slist_append(default_headers,
- "Pragma: no-cache");
/* Verify DAV compliance/lock support */
if (!locking_available()) {
@@ -2548,7 +2542,6 @@ int main(int argc, char **argv)
free(remote);
curl_slist_free_all(no_pragma_header);
- curl_slist_free_all(default_headers);
http_cleanup();