aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/listener-manager.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/app/scripts/lib/listener-manager.js b/app/scripts/lib/listener-manager.js
deleted file mode 100644
index 9e3c71afc..000000000
--- a/app/scripts/lib/listener-manager.js
+++ /dev/null
@@ -1,25 +0,0 @@
-module.exports = class ListenerManager {
-
- constructor() {
- this.cleaners = {}
- }
-
- setup (name) {
- if (!(name in this.cleaners)) {
- this.cleaners[name] = []
- }
- }
-
- addCleanup (name, cleaner) {
- this.setup(name)
- }
-
- cleanupOldListeners (name) {
- this.setup(name)
- this.cleaners[name].forEach((cleaner) => {
- cleaner()
- })
- this.cleaners[name] = []
- }
-
-}