From b1100ec18c3fa7c388ed35ea6fedfe2805c22c3d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 8 Jun 2019 10:23:52 -0700 Subject: [PATCH] Fixed Android build warning --- src/core/android/SDL_android.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/core/android/SDL_android.c b/src/core/android/SDL_android.c index 2e082a2a2ade5..c960a54be7016 100644 --- a/src/core/android/SDL_android.c +++ b/src/core/android/SDL_android.c @@ -1226,11 +1226,6 @@ static void LocalReferenceHolder_Cleanup(struct LocalReferenceHolder *refholder) } } -static SDL_bool LocalReferenceHolder_IsActive(void) -{ - return (SDL_AtomicGet(&s_active) > 0); -} - ANativeWindow* Android_JNI_GetNativeWindow(void) { ANativeWindow *anw = NULL; @@ -1634,7 +1629,7 @@ static SDL_bool Android_JNI_ExceptionOccurred(SDL_bool silent) jthrowable exception; /* Detect mismatch LocalReferenceHolder_Init/Cleanup */ - SDL_assert(LocalReferenceHolder_IsActive()); + SDL_assert(SDL_AtomicGet(&s_active) > 0); exception = (*env)->ExceptionOccurred(env); if (exception != NULL) {