From 31c1cfa6502e3d4848db2279d16978715c60e86d Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 19 Dec 2024 12:46:59 +1000 Subject: [PATCH] Achievements: Remove unused NeedsIdleUpdate() --- src/core/achievements.cpp | 9 --------- src/core/achievements.h | 3 --- 2 files changed, 12 deletions(-) diff --git a/src/core/achievements.cpp b/src/core/achievements.cpp index 7da0e4b6c..88eb58229 100644 --- a/src/core/achievements.cpp +++ b/src/core/achievements.cpp @@ -828,15 +828,6 @@ void Achievements::IdleUpdate() rc_client_idle(s_state.client); } -bool Achievements::NeedsIdleUpdate() -{ - if (!IsActive()) - return false; - - const auto lock = GetLock(); - return (s_state.http_downloader && s_state.http_downloader->HasAnyRequests()); -} - void Achievements::FrameUpdate() { if (!IsActive()) diff --git a/src/core/achievements.h b/src/core/achievements.h index 7a2b5dc89..2a355a8c8 100644 --- a/src/core/achievements.h +++ b/src/core/achievements.h @@ -58,9 +58,6 @@ void FrameUpdate(); /// Called when the system is paused, because FrameUpdate() won't be getting called. void IdleUpdate(); -/// Returns true if idle updates are necessary (e.g. outstanding requests). -bool NeedsIdleUpdate(); - /// Saves/loads state. bool DoState(StateWrapper& sw);