summaryrefslogtreecommitdiff
path: root/ui/lib/store
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-10-11 15:52:42 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-10-11 15:52:42 -0400
commitd33c8af14c4adc1c15ab048299e06f9f35ae4de6 (patch)
tree5dce8c28876353893dfd4725dcd093afff7e6dff /ui/lib/store
parent7bcfeb08946e64642b33f4b099ff235ba8527697 (diff)
parent72f3d8c5ab3e2a42cf1a76d0c08815dbe46e50a1 (diff)
Merge branch 'wip/login-route'
Diffstat (limited to 'ui/lib/store')
-rw-r--r--ui/lib/store/channels.js35
1 files changed, 0 insertions, 35 deletions
diff --git a/ui/lib/store/channels.js b/ui/lib/store/channels.js
index bb6c86c..b57ca7e 100644
--- a/ui/lib/store/channels.js
+++ b/ui/lib/store/channels.js
@@ -34,38 +34,3 @@ export class Channels {
});
}
}
-
-export class ActiveChannel {
- constructor() {
- this.channel = null;
- }
-
- isSet() {
- return this.channel !== null;
- }
-
- get() {
- return this.channel;
- }
-
- is(id) {
- return this.channel === id;
- }
-
- set(id) {
- this.channel = id;
- return this;
- }
-
- deleteChannel(id) {
- if (this.is(id)) {
- return this.clear();
- }
- return this;
- }
-
- clear() {
- this.channel = null;
- return this;
- }
-}