@matheusbsbs / matheus-bagliano / commits / c20f290808
Fork 0

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>

Mike Hommey committed Dec 10, 2007 at 22:36 UTC c20f290808efb85fbc7a57e7bc6eddeb4a0208a8
1 file changed -7
http-push.c
-7
@@ -75,7 +75,6 @@ static int aborted;
75 static signed char remote_dir_exists[256];
76
77 static struct curl_slist *no_pragma_header;
78 -static struct curl_slist *default_headers;
78
79 static int push_verbosely;
80 static int push_all = MATCH_REFS_NONE;
@@ -2364,11 +2363,6 @@ int main(int argc, char **argv)
2363 http_init();
2364
2365 no_pragma_header = curl_slist_append(no_pragma_header, "Pragma:");
2367 - default_headers = curl_slist_append(default_headers, "Range:");
2368 - default_headers = curl_slist_append(default_headers, "Destination:");
2369 - default_headers = curl_slist_append(default_headers, "If:");
2370 - default_headers = curl_slist_append(default_headers,
2371 - "Pragma: no-cache");
2366
2367 /* Verify DAV compliance/lock support */
2368 if (!locking_available()) {
@@ -2548,7 +2542,6 @@ int main(int argc, char **argv)
2542 free(remote);
2543
2544 curl_slist_free_all(no_pragma_header);
2551 - curl_slist_free_all(default_headers);
2545
2546 http_cleanup();
2547