From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 2618B42DBA for ; Sat, 7 May 2022 23:53:41 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9590C68B370; Sun, 8 May 2022 02:53:38 +0300 (EEST) Received: from smtpbg.qq.com (smtpbg123.qq.com [175.27.65.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 04DAB68B21E for ; Sun, 8 May 2022 02:53:31 +0300 (EEST) X-QQ-mid: bizesmtp64t1651967527tv4p8yhw Received: from localhost ( [114.245.19.167]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 08 May 2022 07:52:06 +0800 (CST) X-QQ-SSF: 01100000002000Z0Z000B00A0000000 X-QQ-FEAT: u/aLP58xgtvWYHg3aplpgPDTnJs0SetbjEpcopNQ+FhBhF89bf9MWYQ6/7+23 /xv9wXHSXo3oG1kc/0bi0au3c/jJQ3IZyr9bdgdm3QmwEvvOCLuBt9/Juo2B3PCquuj/Geu wnq5kWK9fTy9Wb8o16HLC+UYTLnddQDFg2OGWW2bErikyDSkXX2Fx55aNGlj75+ChGTl3aL fWhYLbysg0yIwJuABU/yNHJsHgRK7Mhbqdddl+IygvSPjOxXjbKvhQhqfrJqlg+T1zHJ46f spZrBy3Muu6ZUEdrvvCZL3DoG5HB5nGD2DnFx/4FNQ7dAKd+w8FsGzAys= X-QQ-GoodBg: 0 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Sun, 8 May 2022 07:51:08 +0800 Message-Id: <20220507235108.27709-1-lq@chinaffmpeg.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgspam:qybgspam8 Subject: [FFmpeg-devel] [PATCH] avformat/http: remove unused function ff_http_get_shutdown_status X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Steven Liu , Steven Liu Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Steven Liu ff_http_get_shutdown_status is unused after ticket 9010 fixed. Signed-off-by: Steven Liu --- libavformat/http.c | 15 --------------- libavformat/http.h | 9 --------- 2 files changed, 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 @@ -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. * -- 2.29.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".