Cleanup: Remove unused function InvalidateShipPathCache

This was only used in the callback when changing the ship pathfinder setting.
This commit is contained in:
merni-ns 2024-03-02 22:05:02 +05:30
parent 18d054150a
commit d7fd2a9058
2 changed files with 0 additions and 9 deletions

View File

@ -496,13 +496,6 @@ static void MaxVehiclesChanged(int32_t)
MarkWholeScreenDirty(); 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. * Replace a passwords that are a literal asterisk with an empty string.
* @param newval The new string value for this password field. * @param newval The new string value for this password field.

View File

@ -8,8 +8,6 @@
; and in the savegame PATS chunk. ; and in the savegame PATS chunk.
[pre-amble] [pre-amble]
static void InvalidateShipPathCache(int32_t new_value);
static const SettingVariant _pathfinding_settings_table[] = { static const SettingVariant _pathfinding_settings_table[] = {
[post-amble] [post-amble]
}; };