diff --git a/src/system/Error.hxx b/src/system/Error.hxx index 1e3be33f1..706c1dd81 100644 --- a/src/system/Error.hxx +++ b/src/system/Error.hxx @@ -6,16 +6,6 @@ #include // IWYU pragma: export #include -template -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)...); - return std::system_error(code, buffer); -} - #ifdef _WIN32 #include // for GetLastError()