Skip to content

Commit

Permalink
Remove the default_headers variable from http-push.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Hommey authored and Junio C Hamano committed Dec 15, 2007
1 parent a096bb1 commit c20f290
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions http-push.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()) {
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit c20f290

Please sign in to comment.