Remove more dead code

This commit is contained in:
Raffson 2024-02-17 18:40:14 +01:00
parent 40a733e147
commit d901df4fa0
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -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()