From d7fd2a90581eb11f19aeaeea806f723e6833aedb Mon Sep 17 00:00:00 2001 From: merni-ns Date: Sat, 2 Mar 2024 22:05:02 +0530 Subject: [PATCH] Cleanup: Remove unused function InvalidateShipPathCache This was only used in the callback when changing the ship pathfinder setting. --- src/settings_table.cpp | 7 ------- src/table/settings/pathfinding_settings.ini | 2 -- 2 files changed, 9 deletions(-) diff --git a/src/settings_table.cpp b/src/settings_table.cpp index 5dd9ed5c56..b8ac8da752 100644 --- a/src/settings_table.cpp +++ b/src/settings_table.cpp @@ -496,13 +496,6 @@ static void MaxVehiclesChanged(int32_t) MarkWholeScreenDirty(); } -static void InvalidateShipPathCache(int32_t) -{ - for (Ship *s : Ship::Iterate()) { - s->path.clear(); - } -} - /** * Replace a passwords that are a literal asterisk with an empty string. * @param newval The new string value for this password field. diff --git a/src/table/settings/pathfinding_settings.ini b/src/table/settings/pathfinding_settings.ini index ac83c763c9..469b488456 100644 --- a/src/table/settings/pathfinding_settings.ini +++ b/src/table/settings/pathfinding_settings.ini @@ -8,8 +8,6 @@ ; and in the savegame PATS chunk. [pre-amble] -static void InvalidateShipPathCache(int32_t new_value); - static const SettingVariant _pathfinding_settings_table[] = { [post-amble] };