From ce0b4d5c196970e8dc58d6b4e5a2a82a36df4cd9 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max.kellermann@gmail.com>
Date: Mon, 6 Mar 2023 19:52:05 +0100
Subject: [PATCH] system/Error: remove unused function FormatSystemError()

---
 src/system/Error.hxx | 10 ----------
 1 file changed, 10 deletions(-)

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 <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()