From 91c118b9ac019dd61f482e18cd3bc8ad4af8edbb Mon Sep 17 00:00:00 2001 From: JP Cottin Date: Sat, 24 Oct 2026 06:00:03 -0700 Subject: [PATCH] Drop the unused saveHighScores checkHighScore merges the disk table and writes it itself; nothing called this wrapper. --- app/src/main/cpp/game.cpp | 5 ----- app/src/main/cpp/game.h | 1 - 2 files changed, 6 deletions(-) diff --git a/app/src/main/cpp/game.cpp b/app/src/main/cpp/game.cpp index 75fd1c9..c8aad3f 100644 --- a/app/src/main/cpp/game.cpp +++ b/app/src/main/cpp/game.cpp @@ -287,11 +287,6 @@ void Game::mergeDiskHighScores() { fclose(rf); } -void Game::saveHighScores() { - mergeDiskHighScores(); - writeHighScores(); -} - void Game::writeHighScores() { if (dataPath_[0] == '\0') return; HighScoreFile buf{}; diff --git a/app/src/main/cpp/game.h b/app/src/main/cpp/game.h index aa1b9de..629b09d 100644 --- a/app/src/main/cpp/game.h +++ b/app/src/main/cpp/game.h @@ -141,7 +141,6 @@ class Game { bool fireHeld() const; float controlTargetX() const; void loadHighScores(); - void saveHighScores(); // Returns the rank the entry was inserted at, or -1 when it was not // ranked or an identical row already exists. int mergeHighScore(long score, int level);