summaryrefslogtreecommitdiff
path: root/src/gettext.h
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-10-18 02:29:06 +0200
committerest31 <MTest31@outlook.com>2015-10-18 02:29:06 +0200
commit6b0cae5a9d6e220b9f1ecf8e6a821d84961564fd (patch)
tree67a2bcef1cb55d45665d5e39bc27b6a6afca2da6 /src/gettext.h
parentf3d82567c9dc98d5b1fa8724055727956ed351eb (diff)
downloadminetest-6b0cae5a9d6e220b9f1ecf8e6a821d84961564fd.tar.gz
minetest-6b0cae5a9d6e220b9f1ecf8e6a821d84961564fd.tar.bz2
minetest-6b0cae5a9d6e220b9f1ecf8e6a821d84961564fd.zip
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.
Diffstat (limited to 'src/gettext.h')
-rw-r--r--src/gettext.h8
1 files changed, 0 insertions, 8 deletions
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());