From 18efda719e3cb0797a88e58b8236287197dfb61e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 27 May 2021 15:14:47 +0200 Subject: [PATCH] client/Response: remove unused method Format() --- src/client/Response.cxx | 10 ---------- src/client/Response.hxx | 3 --- 2 files changed, 13 deletions(-) diff --git a/src/client/Response.cxx b/src/client/Response.cxx index eeefd549f..f3f6f500e 100644 --- a/src/client/Response.cxx +++ b/src/client/Response.cxx @@ -48,16 +48,6 @@ Response::FormatV(const char *fmt, std::va_list args) noexcept return Write(FormatStringV(fmt, args).c_str()); } -bool -Response::Format(const char *fmt, ...) noexcept -{ - std::va_list args; - va_start(args, fmt); - bool success = FormatV(fmt, args); - va_end(args); - return success; -} - bool Response::VFmt(fmt::string_view format_str, fmt::format_args args) noexcept { diff --git a/src/client/Response.hxx b/src/client/Response.hxx index 537001aae..4b6af9417 100644 --- a/src/client/Response.hxx +++ b/src/client/Response.hxx @@ -81,9 +81,6 @@ public: bool Write(const char *data) noexcept; bool FormatV(const char *fmt, std::va_list args) noexcept; - gcc_printf(2,3) - bool Format(const char *fmt, ...) noexcept; - bool VFmt(fmt::string_view format_str, fmt::format_args args) noexcept; template