Browse Source

Fixed build

Sam Lantinga 8 months ago
parent
commit
881e2bc344
1 changed files with 0 additions and 2 deletions
  1. 0 2
      src/timer/SDL_timer.c

+ 0 - 2
src/timer/SDL_timer.c

@@ -353,7 +353,6 @@ int SDL_RemoveTimer(SDL_TimerID id)
 {
     SDL_TimerData *data = &SDL_timer_data;
     SDL_TimerMap *prev, *entry;
-    SDL_bool canceled = SDL_FALSE;
 
     if (!id) {
         return SDL_InvalidParamError("id");
@@ -377,7 +376,6 @@ int SDL_RemoveTimer(SDL_TimerID id)
     if (entry) {
         if (!SDL_AtomicGet(&entry->timer->canceled)) {
             SDL_AtomicSet(&entry->timer->canceled, 1);
-            canceled = SDL_TRUE;
         }
         SDL_free(entry);
     }