1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/http: remove unused function ff_http_get_shutdown_status

ff_http_get_shutdown_status is unused after ticket 9010 fixed.

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
Steven Liu 2022-05-08 07:46:57 +08:00 committed by Steven Liu
parent cbc1b8adad
commit 1d6e9a7a30
2 changed files with 0 additions and 24 deletions

View File

@ -441,21 +441,6 @@ fail:
return ret;
return ff_http_averror(s->http_code, AVERROR(EIO));
}
int ff_http_get_shutdown_status(URLContext *h)
{
int ret = 0;
HTTPContext *s = h->priv_data;
/* flush the receive buffer when it is write only mode */
char buf[1024];
int read_ret;
read_ret = ffurl_read(s->hd, buf, sizeof(buf));
if (read_ret < 0) {
ret = read_ret;
}
return ret;
}
int ff_http_do_new_request(URLContext *h, const char *uri) {
return ff_http_do_new_request2(h, uri, NULL);

View File

@ -37,15 +37,6 @@
*/
void ff_http_init_auth_state(URLContext *dest, const URLContext *src);
/**
* Get the HTTP shutdown response status, be used after http_shutdown.
*
* @param h pointer to the resource
* @return a negative value if an error condition occurred, 0
* otherwise
*/
int ff_http_get_shutdown_status(URLContext *h);
/**
* Send a new HTTP request, reusing the old connection.
*