Log: remove unused Format functions

This commit is contained in:
Max Kellermann 2021-06-24 21:28:22 +02:00
parent 6f539cfcd6
commit 0e0f46a1e0
2 changed files with 0 additions and 39 deletions

View File

@ -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
{

View File

@ -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>(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;