From d901df4fa0ec326218270fb53c82819da2ea0c3a Mon Sep 17 00:00:00 2001 From: Raffson Date: Sat, 17 Feb 2024 18:40:14 +0100 Subject: [PATCH] Remove more dead code --- game/ato/flightplans/flightplan.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/game/ato/flightplans/flightplan.py b/game/ato/flightplans/flightplan.py index 32e1d7c3..91ac8af9 100644 --- a/game/ato/flightplans/flightplan.py +++ b/game/ato/flightplans/flightplan.py @@ -71,15 +71,6 @@ class FlightPlan(ABC, Generic[LayoutT]): """A list of all waypoints in the flight plan, in order.""" return list(self.iter_waypoints()) - def get_index_of_wpt_by_type(self, wpt_type: FlightWaypointType) -> int: - index = 0 - for wpt in self.waypoints: - if wpt and not wpt.only_for_player: - index += 1 - if wpt.waypoint_type == wpt_type: - return index - return -1 - def iter_waypoints(self) -> Iterator[FlightWaypoint]: """Iterates over all waypoints in the flight plan, in order.""" yield from self.layout.iter_waypoints()