diff options
author | 2012-08-12 11:10:48 +0900 | |
---|---|---|
committer | 2012-08-13 10:48:37 +0900 | |
commit | bcec82de66f52655593dc233346f11468f5077a0 (patch) | |
tree | 2237aa0f754e3ab44ccfac034f5ef6e17ffda724 /native/jni/jni_common.cpp | |
parent | 814510305c21b3081414e75e040dec4b73f6cdf3 (diff) | |
download | latinime-bcec82de66f52655593dc233346f11468f5077a0.tar.gz latinime-bcec82de66f52655593dc233346f11468f5077a0.tar.xz latinime-bcec82de66f52655593dc233346f11468f5077a0.zip |
Clean up constructors
And, use C++ style casts and use float math functions rather than double ones to save memory space.
Also, stop using FloatMath and NativeUtils as standard Math methods are faster now.
See http://code.google.com/p/android/issues/detail?id=36199 and https://android-review.googlesource.com/40700
multi-project commit with I4259fb5ab8a15ac5760a7f04fc8f4c860529f04a
Change-Id: I0b81cff8c91769f7559a59b9528c75a5aabb4211
Diffstat (limited to 'native/jni/jni_common.cpp')
-rw-r--r-- | native/jni/jni_common.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/native/jni/jni_common.cpp b/native/jni/jni_common.cpp index 795262aa4..1586f253b 100644 --- a/native/jni/jni_common.cpp +++ b/native/jni/jni_common.cpp @@ -21,7 +21,6 @@ #include "com_android_inputmethod_keyboard_ProximityInfo.h" #include "com_android_inputmethod_latin_BinaryDictionary.h" #include "com_android_inputmethod_latin_DicTraverseSession.h" -#include "com_android_inputmethod_latin_NativeUtils.h" #include "defines.h" #include "jni.h" #include "jni_common.h" @@ -56,11 +55,6 @@ jint JNI_OnLoad(JavaVM *vm, void *reserved) { goto bail; } - if (!register_NativeUtils(env)) { - AKLOGE("ERROR: NativeUtils native registration failed"); - goto bail; - } - /* success -- return valid version number */ result = JNI_VERSION_1_6; |