From: Eduard Bagdasaryan Date: Mon, 13 Feb 2023 02:57:14 +0000 (+0000) Subject: Remove unused Ftp::Gateway::printfReplyBody() (#1271) X-Git-Tag: SQUID_6_0_1~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0f17e25;p=thirdparty%2Fsquid.git Remove unused Ftp::Gateway::printfReplyBody() (#1271) Ftp::Gateway::printfReplyBody() has been unused since 0477a07. --- diff --git a/src/clients/FtpGateway.cc b/src/clients/FtpGateway.cc index 3092f0b441..0f0d0ddcc3 100644 --- a/src/clients/FtpGateway.cc +++ b/src/clients/FtpGateway.cc @@ -143,7 +143,6 @@ public: void checkUrlpath(); void buildTitleUrl(); void writeReplyBody(const char *, size_t len); - void printfReplyBody(const char *fmt, ...); void completeForwarding() override; void processHeadResponse(); void processReplyBody() override; @@ -2611,18 +2610,6 @@ Ftp::UrlWith2f(HttpRequest * request) return request->effectiveRequestUri(); } -void -Ftp::Gateway::printfReplyBody(const char *fmt, ...) -{ - va_list args; - va_start (args, fmt); - static char buf[4096]; - buf[0] = '\0'; - vsnprintf(buf, 4096, fmt, args); - writeReplyBody(buf, strlen(buf)); - va_end(args); -} - /** * Call this when there is data from the origin server * which should be sent to either StoreEntry, or to ICAP...