aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-08-24 02:54:34 +0200
committerMax Kellermann <max@duempel.org>2011-08-24 02:55:05 +0200
commit523f89cc8c661687f2994cafcd6ca7cf40eae49f (patch)
tree72d2663e8bda28d156006215f269c2b67875c960
parent0575a6d652d7db9b8783db59963f9b612dc7b282 (diff)
downloadmpd-523f89cc8c661687f2994cafcd6ca7cf40eae49f.tar.gz
mpd-523f89cc8c661687f2994cafcd6ca7cf40eae49f.tar.xz
mpd-523f89cc8c661687f2994cafcd6ca7cf40eae49f.zip
input/curl: remove obsolete function input_curl_reinit()
Diffstat (limited to '')
-rw-r--r--src/input/curl_input_plugin.c12
-rw-r--r--src/input/curl_input_plugin.h8
-rw-r--r--src/input/rewind_input_plugin.c1
3 files changed, 0 insertions, 21 deletions
diff --git a/src/input/curl_input_plugin.c b/src/input/curl_input_plugin.c
index 20e8dea07..d869a90e4 100644
--- a/src/input/curl_input_plugin.c
+++ b/src/input/curl_input_plugin.c
@@ -711,18 +711,6 @@ input_curl_easy_init(struct input_curl *c, GError **error_r)
return true;
}
-void
-input_curl_reinit(struct input_stream *is)
-{
- struct input_curl *c = (struct input_curl *)is;
-
- assert(c->base.plugin == &input_plugin_curl);
- assert(c->easy != NULL);
-
- curl_easy_setopt(c->easy, CURLOPT_WRITEHEADER, is);
- curl_easy_setopt(c->easy, CURLOPT_WRITEDATA, is);
-}
-
static bool
input_curl_send_request(struct input_curl *c, GError **error_r)
{
diff --git a/src/input/curl_input_plugin.h b/src/input/curl_input_plugin.h
index 7cfe5155c..c6e71bf40 100644
--- a/src/input/curl_input_plugin.h
+++ b/src/input/curl_input_plugin.h
@@ -24,12 +24,4 @@ struct input_stream;
extern const struct input_plugin input_plugin_curl;
-/**
- * This is a workaround for an input_stream API deficiency; after
- * exchanging the input_stream pointer in input_rewind_open(), this
- * function is called to reinitialize CURL's data pointers.
- */
-void
-input_curl_reinit(struct input_stream *is);
-
#endif
diff --git a/src/input/rewind_input_plugin.c b/src/input/rewind_input_plugin.c
index 33d93d0a4..5d2ccb093 100644
--- a/src/input/rewind_input_plugin.c
+++ b/src/input/rewind_input_plugin.c
@@ -19,7 +19,6 @@
#include "config.h"
#include "input/rewind_input_plugin.h"
-#include "input/curl_input_plugin.h"
#include "input_plugin.h"
#include "tag.h"