From 0e0f46a1e0a7662db0b497b636f87e4402ade099 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 24 Jun 2021 21:28:22 +0200 Subject: [PATCH] Log: remove unused Format functions --- src/Log.cxx | 27 --------------------------- src/Log.hxx | 12 ------------ 2 files changed, 39 deletions(-) diff --git a/src/Log.cxx b/src/Log.cxx index fb82703e6..69fa138c3 100644 --- a/src/Log.cxx +++ b/src/Log.cxx @@ -66,24 +66,6 @@ FormatDebug(const Domain &domain, const char *fmt, ...) noexcept va_end(ap); } -void -FormatInfo(const Domain &domain, const char *fmt, ...) noexcept -{ - std::va_list ap; - va_start(ap, fmt); - LogFormatV(LogLevel::INFO, domain, fmt, ap); - va_end(ap); -} - -void -FormatNotice(const Domain &domain, const char *fmt, ...) noexcept -{ - std::va_list ap; - va_start(ap, fmt); - LogFormatV(LogLevel::NOTICE, domain, fmt, ap); - va_end(ap); -} - void FormatWarning(const Domain &domain, const char *fmt, ...) noexcept { @@ -93,15 +75,6 @@ FormatWarning(const Domain &domain, const char *fmt, ...) noexcept va_end(ap); } -void -FormatError(const Domain &domain, const char *fmt, ...) noexcept -{ - std::va_list ap; - va_start(ap, fmt); - LogFormatV(LogLevel::ERROR, domain, fmt, ap); - va_end(ap); -} - void Log(LogLevel level, const std::exception &e) noexcept { diff --git a/src/Log.hxx b/src/Log.hxx index 53c6775ac..dfc33a409 100644 --- a/src/Log.hxx +++ b/src/Log.hxx @@ -141,20 +141,12 @@ LogInfo(const Domain &domain, const char *msg) noexcept Log(LogLevel::INFO, domain, msg); } -gcc_printf(2,3) -void -FormatInfo(const Domain &domain, const char *fmt, ...) noexcept; - static inline void LogNotice(const Domain &domain, const char *msg) noexcept { Log(LogLevel::NOTICE, domain, msg); } -gcc_printf(2,3) -void -FormatNotice(const Domain &domain, const char *fmt, ...) noexcept; - static inline void LogWarning(const Domain &domain, const char *msg) noexcept { @@ -210,10 +202,6 @@ FormatError(const std::exception_ptr &ep, LogFormat(LogLevel::ERROR, ep, fmt, std::forward(args)...); } -gcc_printf(2,3) -void -FormatError(const Domain &domain, const char *fmt, ...) noexcept; - void LogErrno(const Domain &domain, int e, const char *msg) noexcept;