Skip to content

Commit

Permalink
Remove actionAdded event (#84)
Browse files Browse the repository at this point in the history
Fixes #82
  • Loading branch information
neilenns authored Jan 9, 2025
1 parent d10ef1a commit 50c547c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 12 deletions.
7 changes: 0 additions & 7 deletions src/events/action/actionAdded.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/events/streamdeck/atisLetter/addAtisLetter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ export const handleAddAtisLetter = (

actionManager.add(controller);
actionManager.emit("atisLetterAdded", controller);
actionManager.emit("actionAdded", controller);
};
1 change: 0 additions & 1 deletion src/events/streamdeck/vAtisStatus/addvAtisStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ export const handleAddvAtisStatus = (

actionManager.add(controller);
actionManager.emit("vAtisStatusAdded", controller);
actionManager.emit("actionAdded", controller);
};
1 change: 0 additions & 1 deletion src/managers/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class ActionManager extends EventEmitter {
*/
public add(controller: Controller): void {
this.actions.push(controller);
this.emit("actionAdded", controller);
}

/**
Expand Down
2 changes: 0 additions & 2 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import vAtisManager from "@managers/vatis";
import actionManager from "@managers/action";

// Event handlers
import { handleActionAdded } from "@events/action/actionAdded";
import { handleActionRemoved } from "@events/action/actionRemoved";
import { handleAtisLetterAdded } from "@events/action/atisLetterAdded";
import { handleAtisLetterUpdated } from "@events/action/atisLetterUpdated";
Expand Down Expand Up @@ -52,7 +51,6 @@ vAtisManager.on("disconnected", () => {
});
vAtisManager.on("atisUpdate", handleAtisUpdate);

actionManager.on("actionAdded", handleActionAdded);
actionManager.on("actionRemoved", handleActionRemoved);
actionManager.on("atisLetterAdded", handleAtisLetterAdded);
actionManager.on("atisLetterUpdated", handleAtisLetterUpdated);
Expand Down

0 comments on commit 50c547c

Please sign in to comment.