Fixed Android build warning
authorSam Lantinga
Sat, 08 Jun 2019 10:23:52 -0700
changeset 12768dc71b221079c
parent 12767 8b07df58da32
child 12769 096f2f3c4bdc
Fixed Android build warning
src/core/android/SDL_android.c
     1.1 --- a/src/core/android/SDL_android.c	Sat Jun 08 10:21:38 2019 -0700
     1.2 +++ b/src/core/android/SDL_android.c	Sat Jun 08 10:23:52 2019 -0700
     1.3 @@ -1226,11 +1226,6 @@
     1.4      }
     1.5  }
     1.6  
     1.7 -static SDL_bool LocalReferenceHolder_IsActive(void)
     1.8 -{
     1.9 -    return (SDL_AtomicGet(&s_active) > 0);
    1.10 -}
    1.11 -
    1.12  ANativeWindow* Android_JNI_GetNativeWindow(void)
    1.13  {
    1.14      ANativeWindow *anw = NULL;
    1.15 @@ -1634,7 +1629,7 @@
    1.16      jthrowable exception;
    1.17  
    1.18      /* Detect mismatch LocalReferenceHolder_Init/Cleanup */
    1.19 -    SDL_assert(LocalReferenceHolder_IsActive());
    1.20 +    SDL_assert(SDL_AtomicGet(&s_active) > 0);
    1.21  
    1.22      exception = (*env)->ExceptionOccurred(env);
    1.23      if (exception != NULL) {