From 74ff50c5ca343b5829287f6e7ee2b916aa29720e Mon Sep 17 00:00:00 2001 From: Darkelarious Date: Sat, 8 Mar 2025 15:11:53 +0100 Subject: reorganise files Sort out code/source files that were mixed with other repository files. No new functional changes. --- Maintenance/onmaintenancetimeraction.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 Maintenance/onmaintenancetimeraction.cpp (limited to 'Maintenance/onmaintenancetimeraction.cpp') diff --git a/Maintenance/onmaintenancetimeraction.cpp b/Maintenance/onmaintenancetimeraction.cpp deleted file mode 100644 index 97e5c51..0000000 --- a/Maintenance/onmaintenancetimeraction.cpp +++ /dev/null @@ -1,28 +0,0 @@ -#include "maintenance.h" - -// perform maintenance actions -void Maintenance::onMaintenanceTimerAction() -{ - // announce - _coreObject->Log.logEvent("main", QStringLiteral("performing maintenance")); - - // update statistics - int numUpdated = updateStats(); - if (numUpdated > 0) - _coreObject->Log.logEvent("stat", QStringLiteral("updated %1 game stats").arg(QString::number(numUpdated))); - - // prune direct beacons - int numPrunedBeacons = pruneBeacons(); - if (numPrunedBeacons > 0) - _coreObject->Log.logEvent("prune", QStringLiteral("pruned %1 direct beacons").arg(QString::number(numPrunedBeacons))); - - // prune serverinfo, serverinfo from which the serverlist entry is gone already - int numPrunedInfo = pruneServerInfo(); - if (numPrunedInfo > 0) - _coreObject->Log.logEvent("prune", QStringLiteral("pruned %1 server info entries").arg(QString::number(numPrunedInfo))); - - // prune orphaned players from which the serverinfo entry is gone already OR updateinfo is outdated - int numPrunedPlayers = prunePlayers(); - if (numPrunedPlayers > 0) - _coreObject->Log.logEvent("prune", QStringLiteral("pruned %1 players").arg(QString::number(numPrunedPlayers))); -} -- cgit v1.2.3