mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +00:00
Cleanup: Remove unused function InvalidateShipPathCache
This was only used in the callback when changing the ship pathfinder setting.
This commit is contained in:
parent
55a7c59d13
commit
798ec4184b
@ -555,13 +555,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.
|
||||||
|
@ -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]
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user