aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/UserStore.ts
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2023-12-22 15:12:16 -0700
committerLibravatar GitHub <noreply@github.com>2023-12-22 15:12:16 -0700
commit85927dc191a935761b3f175bcd50e7c3076acc9e (patch)
treeceeb350621d824eeb9fdc9137a64a2e820b269b9 /src/stores/UserStore.ts
parentReset nightly version to 6.7.1-nightly.0 (diff)
downloadferdium-app-85927dc191a935761b3f175bcd50e7c3076acc9e.tar.gz
ferdium-app-85927dc191a935761b3f175bcd50e7c3076acc9e.tar.zst
ferdium-app-85927dc191a935761b3f175bcd50e7c3076acc9e.zip
refactor: remove unused code with knip (#1492)
- remove unused code snippets flagged by `npx knip`
Diffstat (limited to 'src/stores/UserStore.ts')
-rw-r--r--src/stores/UserStore.ts27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/stores/UserStore.ts b/src/stores/UserStore.ts
index f98f7d340..9c3fcd3b9 100644
--- a/src/stores/UserStore.ts
+++ b/src/stores/UserStore.ts
@@ -60,11 +60,6 @@ export default class UserStore extends TypedStore {
60 'updateInfo', 60 'updateInfo',
61 ); 61 );
62 62
63 @observable getLegacyServicesRequest: CachedRequest = new CachedRequest(
64 this.api.user,
65 'getLegacyServices',
66 );
67
68 @observable deleteAccountRequest: CachedRequest = new CachedRequest( 63 @observable deleteAccountRequest: CachedRequest = new CachedRequest(
69 this.api.user, 64 this.api.user,
70 'delete', 65 'delete',
@@ -93,8 +88,6 @@ export default class UserStore extends TypedStore {
93 88
94 @observable logoutReason: string | null = null; 89 @observable logoutReason: string | null = null;
95 90
96 fetchUserInfoInterval = null;
97
98 constructor(stores: Stores, api: ApiInterface, actions: Actions) { 91 constructor(stores: Stores, api: ApiInterface, actions: Actions) {
99 super(stores, api, actions); 92 super(stores, api, actions);
100 93
@@ -132,26 +125,10 @@ export default class UserStore extends TypedStore {
132 return this.LOGIN_ROUTE; 125 return this.LOGIN_ROUTE;
133 } 126 }
134 127
135 get logoutRoute(): string {
136 return this.LOGOUT_ROUTE;
137 }
138
139 get signupRoute(): string { 128 get signupRoute(): string {
140 return this.SIGNUP_ROUTE; 129 return this.SIGNUP_ROUTE;
141 } 130 }
142 131
143 get setupRoute(): string {
144 return this.SETUP_ROUTE;
145 }
146
147 get inviteRoute(): string {
148 return this.INVITE_ROUTE;
149 }
150
151 get importRoute(): string {
152 return this.IMPORT_ROUTE;
153 }
154
155 get passwordRoute(): string { 132 get passwordRoute(): string {
156 return this.PASSWORD_ROUTE; 133 return this.PASSWORD_ROUTE;
157 } 134 }
@@ -191,10 +168,6 @@ export default class UserStore extends TypedStore {
191 return this.data.team || null; 168 return this.data.team || null;
192 } 169 }
193 170
194 @computed get legacyServices(): any {
195 return this.getLegacyServicesRequest.execute() || {};
196 }
197
198 // Actions 171 // Actions
199 @action async _login({ email, password }): Promise<void> { 172 @action async _login({ email, password }): Promise<void> {
200 const authToken = await this.loginRequest.execute(email, password).promise; 173 const authToken = await this.loginRequest.execute(email, password).promise;