Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
eseidel committed Aug 10, 2023
1 parent 21cfb99 commit cd3a59a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/cli/lib/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -341,14 +341,8 @@ extension WaypointUtils on Waypoint {
/// Returns true if the waypoint is an asteroid field.
bool get isAsteroidField => isType(WaypointType.ASTEROID_FIELD);

/// Returns true if the waypoint has the stripped trait.
bool get isStripped => hasTrait(WaypointTraitSymbolEnum.STRIPPED);

/// Returns true if the waypoint can be mined.
// Unclear if isStripped is needed, hq's system has a stripped asteroid field
// but it can't be mined, hit a 500 on another:
// https://github.com/SpaceTradersAPI/api-docs/issues/51
bool get canBeMined => isAsteroidField; // && !isStripped;
bool get canBeMined => isAsteroidField;

/// Returns true if the waypoint is a jump gate.
bool get isJumpGate => isType(WaypointType.JUMP_GATE);
Expand Down

0 comments on commit cd3a59a

Please sign in to comment.