summaryrefslogtreecommitdiffstats
path: root/client/x11/platform_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/x11/platform_utils.cpp')
-rw-r--r--client/x11/platform_utils.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/client/x11/platform_utils.cpp b/client/x11/platform_utils.cpp
index a646a806..5ca68f44 100644
--- a/client/x11/platform_utils.cpp
+++ b/client/x11/platform_utils.cpp
@@ -28,21 +28,3 @@ void string_vprintf(std::string& str, const char* format, va_list ap)
vsnprintf(buf.get(), len, format, ap);
str = buf.get();
}
-
-void wstring_vprintf(std::wstring& str, const wchar_t* format, va_list ap)
-{
- int buf_size = 256;
- for (;;) {
- AutoArray<wchar_t> buf(new wchar_t[buf_size]);
- va_list ap_test;
- va_copy(ap_test, ap);
- int r = vswprintf(buf.get(), buf_size, format, ap_test);
- va_end(ap_test);
- if (r != -1) {
- str = buf.get();
- return;
- }
- buf_size *= 2;
- }
-}
-