summaryrefslogtreecommitdiff
path: root/http-walker.c
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2007-12-10 21:36:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-12-15 05:31:59 (GMT)
commite8dc37e0e30dbbed532b7471516d1ba5e6e08f27 (patch)
treef0b09d2bd8d675d0f46fdb5e704b4df54a24330c /http-walker.c
parent02dc534fc6eb8a08c686b7cb2d979545853889d0 (diff)
downloadgit-e8dc37e0e30dbbed532b7471516d1ba5e6e08f27.zip
git-e8dc37e0e30dbbed532b7471516d1ba5e6e08f27.tar.gz
git-e8dc37e0e30dbbed532b7471516d1ba5e6e08f27.tar.bz2
Avoid redundant declaration of missing_target()
Signed-off-by: Mike Hommey <mh@glandium.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-walker.c')
-rw-r--r--http-walker.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/http-walker.c b/http-walker.c
index 0faafbc..ad874b9 100644
--- a/http-walker.c
+++ b/http-walker.c
@@ -90,19 +90,6 @@ static size_t fwrite_sha1_file(void *ptr, size_t eltsize, size_t nmemb,
return size;
}
-static int missing__target(int code, int result)
-{
- return /* file:// URL -- do we ever use one??? */
- (result == CURLE_FILE_COULDNT_READ_FILE) ||
- /* http:// and https:// URL */
- (code == 404 && result == CURLE_HTTP_RETURNED_ERROR) ||
- /* ftp:// URL */
- (code == 550 && result == CURLE_FTP_COULDNT_RETR_FILE)
- ;
-}
-
-#define missing_target(a) missing__target((a)->http_code, (a)->curl_result)
-
static void fetch_alternates(struct walker *walker, const char *base);
static void process_object_response(void *callback_data);