Skip to content

Commit

Permalink
Achievements: Remove unused NeedsIdleUpdate()
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Dec 19, 2024
1 parent 2f5bdc9 commit 31c1cfa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
9 changes: 0 additions & 9 deletions src/core/achievements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
3 changes: 0 additions & 3 deletions src/core/achievements.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 31c1cfa

Please sign in to comment.