mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Remove more dead code
This commit is contained in:
parent
40a733e147
commit
d901df4fa0
@ -71,15 +71,6 @@ class FlightPlan(ABC, Generic[LayoutT]):
|
|||||||
"""A list of all waypoints in the flight plan, in order."""
|
"""A list of all waypoints in the flight plan, in order."""
|
||||||
return list(self.iter_waypoints())
|
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]:
|
def iter_waypoints(self) -> Iterator[FlightWaypoint]:
|
||||||
"""Iterates over all waypoints in the flight plan, in order."""
|
"""Iterates over all waypoints in the flight plan, in order."""
|
||||||
yield from self.layout.iter_waypoints()
|
yield from self.layout.iter_waypoints()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user