]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove unused Ftp::Gateway::printfReplyBody() (#1271)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Mon, 13 Feb 2023 02:57:14 +0000 (02:57 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 13 Feb 2023 07:46:10 +0000 (07:46 +0000)
Ftp::Gateway::printfReplyBody() has been unused since 0477a07.

src/clients/FtpGateway.cc

index 3092f0b4411f9087f15ae4a69a3715e48ae863bb..0f0d0ddcc3d4b3c7022aed45bfaa549a6be1ab7e 100644 (file)
@@ -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...