diff options
author | 2023-12-22 15:12:16 -0700 | |
---|---|---|
committer | 2023-12-22 15:12:16 -0700 | |
commit | 85927dc191a935761b3f175bcd50e7c3076acc9e (patch) | |
tree | ceeb350621d824eeb9fdc9137a64a2e820b269b9 /src/stores/lib/Request.ts | |
parent | Reset nightly version to 6.7.1-nightly.0 (diff) | |
download | ferdium-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.ts | 9 |
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 @@ | |||
1 | import { observable, action, computed, makeObservable } from 'mobx'; | 1 | import { observable, action, computed, makeObservable } from 'mobx'; |
2 | import { isEqual } from 'lodash/fp'; | ||
3 | 2 | ||
4 | // eslint-disable-next-line no-use-before-define | 3 | // eslint-disable-next-line no-use-before-define |
5 | type Hook = (request: Request) => void; | 4 | type 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 | } |