aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/lib/Request.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/lib/Request.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/lib/Request.ts')
-rw-r--r--src/stores/lib/Request.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/stores/lib/Request.ts b/src/stores/lib/Request.ts
index 911c5ccfb..587af87d7 100644
--- a/src/stores/lib/Request.ts
+++ b/src/stores/lib/Request.ts
@@ -1,5 +1,4 @@
1import { observable, action, computed, makeObservable } from 'mobx'; 1import { observable, action, computed, makeObservable } from 'mobx';
2import { isEqual } from 'lodash/fp';
3 2
4// eslint-disable-next-line no-use-before-define 3// eslint-disable-next-line no-use-before-define
5type Hook = (request: Request) => void; 4type Hook = (request: Request) => void;
@@ -123,14 +122,6 @@ export default class Request {
123 return this.execute(...args); 122 return this.execute(...args);
124 } 123 }
125 124
126 isExecutingWithArgs(...args: any[]): boolean {
127 return (
128 this.isExecuting &&
129 this.currentApiCall &&
130 isEqual(this.currentApiCall.args, args)
131 );
132 }
133
134 @computed get isExecutingFirstTime(): boolean { 125 @computed get isExecutingFirstTime(): boolean {
135 return !this.wasExecuted && this.isExecuting; 126 return !this.wasExecuted && this.isExecuting;
136 } 127 }