Code

http: init and cleanup separately from http-walker
[git.git] / http-walker.c
index 508e35517c55b8b9f894c46a25e831f1ed3652b9..ef99ae647ae02995495c71455eef785bdeca1789 100644 (file)
@@ -559,18 +559,14 @@ static void cleanup(struct walker *walker)
                free(data);
                walker->data = NULL;
        }
-
-       http_cleanup();
 }
 
-struct walker *get_http_walker(const char *url, struct remote *remote)
+struct walker *get_http_walker(const char *url)
 {
        char *s;
        struct walker_data *data = xmalloc(sizeof(struct walker_data));
        struct walker *walker = xmalloc(sizeof(struct walker));
 
-       http_init(remote);
-
        data->alt = xmalloc(sizeof(*data->alt));
        data->alt->base = xmalloc(strlen(url) + 1);
        strcpy(data->alt->base, url);