input/curl: remove obsolete function input_curl_reinit()
This commit is contained in:
		| @@ -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) | ||||
| { | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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" | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann