summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorSteven Liu <liuqi05@kuaishou.com>2022-05-08 07:46:57 +0800
committerSteven Liu <lq@chinaffmpeg.org>2022-05-12 11:31:38 +0800
commit1d6e9a7a3083ce07c8431f7b93958d8496531fcf (patch)
tree5ad42393885e0704eef3feec1ec6254421910b91 /libavformat
parentcbc1b8adad80dd433aeda575f4c5873dfecb7c6f (diff)
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>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/http.c15
-rw-r--r--libavformat/http.h9
2 files changed, 0 insertions, 24 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index c4eeb58cd0..c8f3f4b6a3 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -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);
diff --git a/libavformat/http.h b/libavformat/http.h
index 5557ce9b58..5f650ef143 100644
--- a/libavformat/http.h
+++ b/libavformat/http.h
@@ -38,15 +38,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.
*
* @param h pointer to the resource