diff options
author | Elliott Hughes <enh@google.com> | 2011-04-12 11:28:59 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2011-04-12 11:28:59 -0700 |
commit | dd66bcbf9d6ef0c50a18d9c4b1b39ce7ef7afcc4 (patch) | |
tree | d44c2b9758436b189a2091297fa1e22d350da4a3 /core/jni/android_net_wifi_Wifi.cpp | |
parent | ae447967b5f07dd789a7488aa9e190637478a97c (diff) | |
download | frameworks_base-dd66bcbf9d6ef0c50a18d9c4b1b39ce7ef7afcc4.zip frameworks_base-dd66bcbf9d6ef0c50a18d9c4b1b39ce7ef7afcc4.tar.gz frameworks_base-dd66bcbf9d6ef0c50a18d9c4b1b39ce7ef7afcc4.tar.bz2 |
More native code cleanup.
Don't keep unused global references to classes, don't throw exceptions
when an exception is already pending, and fix a (harmless) misunderstanding
about how GetStringChars works.
Change-Id: Ie445036f057daa8a1c76aceb7bad2a84fb81d820
Diffstat (limited to 'core/jni/android_net_wifi_Wifi.cpp')
-rw-r--r-- | core/jni/android_net_wifi_Wifi.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/core/jni/android_net_wifi_Wifi.cpp b/core/jni/android_net_wifi_Wifi.cpp index 494dc27..2abb9ea 100644 --- a/core/jni/android_net_wifi_Wifi.cpp +++ b/core/jni/android_net_wifi_Wifi.cpp @@ -651,9 +651,6 @@ static JNINativeMethod gWifiMethods[] = { int register_android_net_wifi_WifiManager(JNIEnv* env) { - jclass wifi = env->FindClass(WIFI_PKG_NAME); - LOG_FATAL_IF(wifi == NULL, "Unable to find class " WIFI_PKG_NAME); - return AndroidRuntime::registerNativeMethods(env, WIFI_PKG_NAME, gWifiMethods, NELEM(gWifiMethods)); } |