diff --git a/src/timer/SDL_timer.c b/src/timer/SDL_timer.c index a4420bb9a9..a936367f9b 100644 --- a/src/timer/SDL_timer.c +++ b/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); }