diff --git a/game/inventory.py b/game/inventory.py index 5ef68b04..ae75c837 100644 --- a/game/inventory.py +++ b/game/inventory.py @@ -65,16 +65,6 @@ class ControlPointAircraftInventory: if count > 0: yield aircraft, count - @property - def total_available(self) -> int: - """Returns the total number of aircraft available.""" - # TODO: Remove? - # This probably isn't actually useful. It's used by the AI flight - # planner to determine how many flights of a given type it should - # allocate, but it should probably be making that decision based on the - # number of aircraft available to perform a particular role. - return sum(self.inventory.values()) - def clear(self) -> None: """Clears all aircraft from the inventory.""" self.inventory.clear() diff --git a/gen/flights/flightplan.py b/gen/flights/flightplan.py index 74462c2d..8619fa3f 100644 --- a/gen/flights/flightplan.py +++ b/gen/flights/flightplan.py @@ -424,7 +424,6 @@ class FlightPlanBuilder: def _heading_to_package_airfield(self, point: Point) -> int: return self.package_airfield().position.heading_between_point(point) - # TODO: Set ingress/egress/join/split points in the Package. def package_airfield(self) -> ControlPoint: # We'll always have a package, but if this is being planned via the UI # it could be the first flight in the package. diff --git a/gen/flights/waypointbuilder.py b/gen/flights/waypointbuilder.py index a0374d25..fd4b5aed 100644 --- a/gen/flights/waypointbuilder.py +++ b/gen/flights/waypointbuilder.py @@ -267,12 +267,6 @@ class WaypointBuilder: waypoint.pretty_name = "Race-track start" self.waypoints.append(waypoint) - # TODO: Does this actually do anything? - # orbit0.targets.append(location) - # Note: Targets of PATROL TRACK waypoints are the points to be defended. - # orbit0.targets.append(flight.from_cp) - # orbit0.targets.append(center) - def race_track_end(self, position: Point, altitude: int) -> None: """Creates a racetrack end waypoint.