diff options
author | Elliott Hughes <enh@google.com> | 2010-04-16 17:44:12 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2010-04-16 17:44:12 -0700 |
commit | c08f9fb2a3be82bb1a3f477ca1524ddcf7a1d4b8 (patch) | |
tree | cc325048a7dc4cb15eb2f39244c3b881b284644d /luni-kernel/src/main/native/java_lang_System.cpp | |
parent | 757a7942eed2b0aa457f8517a0259d2ac82c5b18 (diff) | |
download | libcore-c08f9fb2a3be82bb1a3f477ca1524ddcf7a1d4b8.zip libcore-c08f9fb2a3be82bb1a3f477ca1524ddcf7a1d4b8.tar.gz libcore-c08f9fb2a3be82bb1a3f477ca1524ddcf7a1d4b8.tar.bz2 |
Move the libcore registration out of libnativehelpers and into libcore.
Bug: 754114
Change-Id: Iaa03def509c10cbaa12fd2128584b93d4be4a6b7
Diffstat (limited to 'luni-kernel/src/main/native/java_lang_System.cpp')
-rw-r--r-- | luni-kernel/src/main/native/java_lang_System.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/luni-kernel/src/main/native/java_lang_System.cpp b/luni-kernel/src/main/native/java_lang_System.cpp index 52150d3..b114dab 100644 --- a/luni-kernel/src/main/native/java_lang_System.cpp +++ b/luni-kernel/src/main/native/java_lang_System.cpp @@ -14,7 +14,6 @@ * limitations under the License. */ -#include "AndroidSystemNatives.h" #include "JNIHelp.h" #include <stdlib.h> @@ -84,17 +83,11 @@ static void java_setFieldImpl(JNIEnv* env, jclass clazz, env->ReleaseStringUTFChars(sig, fieldSig); } -/* - * JNI registration - */ static JNINativeMethod gMethods[] = { - /* name, signature, funcPtr */ { "getEnvByName", "(Ljava/lang/String;)Ljava/lang/String;", (void*) java_getEnvByName }, { "getEnvByIndex", "(I)Ljava/lang/String;", (void*) java_getEnvByIndex }, { "setFieldImpl", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V", (void*) java_setFieldImpl }, }; - int register_java_lang_System(JNIEnv* env) { - return jniRegisterNativeMethods(env, "java/lang/System", - gMethods, NELEM(gMethods)); + return jniRegisterNativeMethods(env, "java/lang/System", gMethods, NELEM(gMethods)); } |