From patchwork Sat May 7 23:51:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Steven X-Patchwork-Id: 35682 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a885:b0:7f:4be2:bd17 with SMTP id ca5csp2345692pzb; Sat, 7 May 2022 16:53:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzue899xe5v9sHe4pHRaMMFNFh04FZHRbl86DX3rt5Ok01WO6GmAn1ckeYq45WoXaamUxJT X-Received: by 2002:a17:907:33c2:b0:6f3:9aff:d532 with SMTP id zk2-20020a17090733c200b006f39affd532mr8837220ejb.394.1651967623318; Sat, 07 May 2022 16:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651967623; cv=none; d=google.com; s=arc-20160816; b=nSIaxWEJKoQieKnV+s8UITaeG6fvBuFcwDoz/Twp/uFlGZFP5C7Crt6u5FfVO9oNWN 0XVTOE48qiti/Hrxy6YZ/wS7VPLDhW1i88ynATQJJRfQWU+1SIKzWqkcQmBgBttCKIQS jrgupANofd3ODWE6YZY/R9TVkws6kw4Cm+3EsdiVJGgAWXjy5FLxeDWc0fhplLx/AIWg IwJgKZ0zqZ1MLEwRvMj9ybAkAkWXEKr23CMKfwnuoPH5YL4uhQt7C27RYEZ1Cm/4eefm 7t5+RwSN6FDA/AnphlZIfNjoyJQWcSIUbIfp48oeJHDvb15TkAAvZLDIlQkglfqwPrhb ymNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:feedback-id:mime-version:message-id:date :to:from:delivered-to; bh=UKGL6VPOHnXmZQ8Zh93WIfVpuKhQ3TESHC1AB+wgAeA=; b=XmFk+YLjy7e3NuwkYYt20wuFJ2ZdzzIsRtP5cJTA/HVPX/RZNRtsIrEasBMU9zUOfi QERqE6eQOp9E44A+l90bpGC3PmIuiYA+m4Dp1+6LgHXxEzCZt1Ziu5eJWDwgrkOJ3J1+ Lx7SXiB0c9D7OZppGo+dz+kilO6PJTcg/XLxL5uk+Tploxzit4/8u7AlnpRsZYalD8ds t4r773xZfgUTb41fA+w79vQbgywUPwz9P0Si4cvM54BvTUyL9FCpaDBCGU7gnEWyTdea GcPMBxZtySPHznFyMsnLnDE1DyQbJdLBioKejAMj1kEkm+vGBZ58g2g8ZucdZsiBxQcd vR+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id p17-20020a17090635d100b006f464383e74si8356317ejb.564.2022.05.07.16.53.42; Sat, 07 May 2022 16:53:43 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CD7CE68A466; Sun, 8 May 2022 02:53:38 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: /RMXPoGlR/zO 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. *