From 6b0cae5a9d6e220b9f1ecf8e6a821d84961564fd Mon Sep 17 00:00:00 2001 From: est31 Date: Sun, 18 Oct 2015 02:29:06 +0200 Subject: Remove wstrgettext Everywhere where wstrgettext was used, its output was converted back to utf8. As wstrgettext internally converts the return value from utf8 to wstring, it has been a waste. Remove the function, and use strgettext instead. --- src/gettext.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/gettext.h') diff --git a/src/gettext.h b/src/gettext.h index 0170d1c45..cb3a14160 100644 --- a/src/gettext.h +++ b/src/gettext.h @@ -48,14 +48,6 @@ inline const wchar_t *wgettext(const char *str) return utf8_to_wide_c(gettext(str)); } -inline std::wstring wstrgettext(const std::string &text) -{ - const wchar_t *tmp = wgettext(text.c_str()); - std::wstring retval = (std::wstring)tmp; - delete[] tmp; - return retval; -} - inline std::string strgettext(const std::string &text) { return gettext(text.c_str()); -- cgit v1.2.3