about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--btpd/http.c11
-rw-r--r--btpd/http.h2
2 files changed, 0 insertions, 13 deletions
diff --git a/btpd/http.c b/btpd/http.c
index e75261a..cd42cfb 100644
--- a/btpd/http.c
+++ b/btpd/http.c
@@ -88,17 +88,6 @@ http_get(struct http **ret,
     return 0;
 }
 
-int
-http_redo(struct http **http)
-{
-    int err;
-    struct http *ret;
-    err = http_get(&ret, (*http)->cb, "%s", (*http)->url);
-    http_cancel(*http);
-    *http = ret;
-    return err;
-}
-
 void
 http_cancel(struct http *http)
 {
diff --git a/btpd/http.h b/btpd/http.h
index 4802f4e..c0dc4f4 100644
--- a/btpd/http.h
+++ b/btpd/http.h
@@ -20,9 +20,7 @@ int http_get(struct http **ret,
     void (*cb)(struct http *, struct http_res *, void *),
     void *arg,
     const char *fmt, ...);
-int http_redo(struct http **http);
 void http_cancel(struct http *http);
-
 int http_succeeded(struct http_res *res);
 
 void http_init(void);