Skip to content

Commit

Permalink
Removed unused Type method. (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCoder authored Nov 12, 2024
1 parent 66491b0 commit 6b66289
Showing 1 changed file with 0 additions and 51 deletions.
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

0 comments on commit 6b66289

Please sign in to comment.