about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2006-02-09 20:32:20 +0000
committerRichard Nyberg <rnyberg@murmeldjur.se>2006-02-09 20:32:20 +0000
commite3dc78703a75f587a408351f48592e8b83d43f5a (patch)
tree9c0d0c86015adf99320aff46807da0d10e72b8a2
parent926838a0091a99914c678b19ba778bc12c0ac191 (diff)
downloadbtpd-e3dc78703a75f587a408351f48592e8b83d43f5a.tar.gz
btpd-e3dc78703a75f587a408351f48592e8b83d43f5a.zip
Removed the http_redo hack.
-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);