From be9dda2a5611665718d649a31f9e2053a9296830 Mon Sep 17 00:00:00 2001 From: mittorn Date: Sat, 16 Dec 2023 22:12:40 +0300 Subject: [PATCH] platform/android_nosdl: remove NULL native object case --- engine/platform/android/android_nosdl.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/engine/platform/android/android_nosdl.c b/engine/platform/android/android_nosdl.c index cfc4d667..8d7d73a9 100644 --- a/engine/platform/android/android_nosdl.c +++ b/engine/platform/android/android_nosdl.c @@ -667,14 +667,9 @@ Android_GetNativeObject */ void *Android_GetNativeObject( const char *objName ) { - static const char *availObjects[] = { "JNIEnv", "ActivityClass", NULL }; void *object = NULL; - if( !objName ) - { - object = (void*)availObjects; - } - else if( !strcasecmp( objName, "JNIEnv" ) ) + if( !strcasecmp( objName, "JNIEnv" ) ) { object = (void*)jni.env; }