Skip to content

Commit

Permalink
Fixed Android build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 8, 2019
1 parent 03cf241 commit b1100ec
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/core/android/SDL_android.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit b1100ec

Please sign in to comment.