system/Error: remove unused function FormatSystemError()

This commit is contained in:
Max Kellermann 2023-03-06 19:52:05 +01:00
parent 0c102a8f2f
commit ce0b4d5c19
1 changed files with 0 additions and 10 deletions

View File

@ -6,16 +6,6 @@
#include <system_error> // IWYU pragma: export
#include <utility>
template<typename... Args>
static inline std::system_error
FormatSystemError(std::error_code code, const char *fmt,
Args&&... args) noexcept
{
char buffer[1024];
snprintf(buffer, sizeof(buffer), fmt, std::forward<Args>(args)...);
return std::system_error(code, buffer);
}
#ifdef _WIN32
#include <errhandlingapi.h> // for GetLastError()