Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unused Type method. #209

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 0 additions & 51 deletions src/parser/Participants.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
export enum ParticipantType {
Actor = 1,
Boundary,
Collection,
Control,
Database,
Entity,
Queue,
EC2,
ECS,
IAM,
Lambda,
RDS,
S3,
Undefined,
}

export type Position = [number, number];

interface ParticipantOptions {
Expand Down Expand Up @@ -91,40 +74,6 @@ export class Participant {
this.comment ||= comment;
this.assignee ||= assignee;
}

public Type(): ParticipantType {
switch (this.type?.toLowerCase()) {
case "@actor":
return ParticipantType.Actor;
case "@boundary":
return ParticipantType.Boundary;
case "@collection":
return ParticipantType.Collection;
case "@control":
return ParticipantType.Control;
case "@database":
return ParticipantType.Database;
case "@entity":
return ParticipantType.Entity;
case "@queue":
return ParticipantType.Queue;

case "@ec2":
return ParticipantType.EC2;
case "@ecs":
return ParticipantType.ECS;
case "@iam":
return ParticipantType.IAM;
case "@lambda":
return ParticipantType.Lambda;
case "@rds":
return ParticipantType.RDS;
case "@s3":
return ParticipantType.S3;
}
return ParticipantType.Undefined;
}

public AddPosition(position: Position) {
this.positions.add(position);
}
Expand Down
Loading