mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 02:17:05 +00:00
BACKENDS: Remove unused functions
This commit is contained in:
parent
6216f855a8
commit
c502fd2162
@ -728,15 +728,6 @@ void JNI::setPause(JNIEnv *env, jobject self, jboolean value) {
|
||||
}
|
||||
}
|
||||
|
||||
Common::String JNI::getCurrentCharset() {
|
||||
#ifdef USE_TRANSLATION
|
||||
if (TransMan.getCurrentCharset() != "ASCII") {
|
||||
return TransMan.getCurrentCharset();
|
||||
}
|
||||
#endif
|
||||
return "ISO-8859-1";
|
||||
}
|
||||
|
||||
jstring JNI::convertToJString(JNIEnv *env, const Common::String &str, const Common::String &from) {
|
||||
Common::Encoding converter("UTF-8", from.c_str());
|
||||
char *utf8Str = converter.convert(str.c_str(), converter.stringLength(str.c_str(), from));
|
||||
|
@ -142,8 +142,6 @@ private:
|
||||
int arg2, int arg3, int arg4, int arg5, int arg6);
|
||||
static void setPause(JNIEnv *env, jobject self, jboolean value);
|
||||
|
||||
static Common::String getCurrentCharset();
|
||||
|
||||
static jstring convertToJString(JNIEnv *env, const Common::String &str, const Common::String &from);
|
||||
static Common::String convertFromJString(JNIEnv *env, const jstring &jstr, const Common::String &to);
|
||||
|
||||
|
@ -117,19 +117,4 @@ wchar_t *UTF8ToUnicode(const char *s) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
uint getCurrentCharset() {
|
||||
#ifdef USE_TRANSLATION
|
||||
Common::String charset = TransMan.getCurrentCharset();
|
||||
if (charset == "iso-8859-2")
|
||||
return 28592;
|
||||
if (charset == "iso-8859-5")
|
||||
return 28595;
|
||||
if (charset == "iso-8859-7")
|
||||
return 28597;
|
||||
if (charset == "iso-8859-8")
|
||||
return 28598;
|
||||
#endif
|
||||
return 28591;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -72,8 +72,6 @@ char *unicodeToAnsi(const wchar_t *s, uint codePage = CP_ACP);
|
||||
*/
|
||||
wchar_t *UTF8ToUnicode(const char *s);
|
||||
|
||||
uint getCurrentCharset();
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user