BACKENDS: Remove unused functions

This commit is contained in:
Cameron Cawley 2020-08-31 21:37:41 +01:00
parent 6216f855a8
commit c502fd2162
4 changed files with 0 additions and 28 deletions

View File

@ -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));

View File

@ -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);

View File

@ -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;
}
}

View File

@ -72,8 +72,6 @@ char *unicodeToAnsi(const wchar_t *s, uint codePage = CP_ACP);
*/
wchar_t *UTF8ToUnicode(const char *s);
uint getCurrentCharset();
}
#endif