Browse Source

Removed the http_redo hack.

master
Richard Nyberg 19 years ago
parent
commit
e3dc78703a
2 changed files with 0 additions and 13 deletions
  1. +0
    -11
      btpd/http.c
  2. +0
    -2
      btpd/http.h

+ 0
- 11
btpd/http.c View File

@@ -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)
{


+ 0
- 2
btpd/http.h View File

@@ -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);


Loading…
Cancel
Save