Skip to content

Commit

Permalink
chore: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
eseidel committed Mar 10, 2024
1 parent d2f2b6c commit 9c59130
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions packages/types/lib/src/agent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,6 @@ class Agent extends Equatable {
accountId,
];

/// Copies this agent with some changes.
Agent copyWith({
String? symbol,
WaypointSymbol? headquarters,
int? credits,
FactionSymbol? startingFaction,
int? shipCount,
String? accountId,
}) {
return Agent(
symbol: symbol ?? this.symbol,
headquarters: headquarters ?? this.headquarters,
credits: credits ?? this.credits,
startingFaction: startingFaction ?? this.startingFaction,
shipCount: shipCount ?? this.shipCount,
accountId: accountId ?? this.accountId,
);
}

/// Converts this agent to an OpenAPI agent.
openapi.Agent toOpenApi() {
return openapi.Agent(
Expand Down

0 comments on commit 9c59130

Please sign in to comment.