From 85927dc191a935761b3f175bcd50e7c3076acc9e Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Fri, 22 Dec 2023 15:12:16 -0700 Subject: refactor: remove unused code with knip (#1492) - remove unused code snippets flagged by `npx knip` --- src/stores/lib/Request.ts | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/stores/lib') 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 @@ import { observable, action, computed, makeObservable } from 'mobx'; -import { isEqual } from 'lodash/fp'; // eslint-disable-next-line no-use-before-define type Hook = (request: Request) => void; @@ -123,14 +122,6 @@ export default class Request { return this.execute(...args); } - isExecutingWithArgs(...args: any[]): boolean { - return ( - this.isExecuting && - this.currentApiCall && - isEqual(this.currentApiCall.args, args) - ); - } - @computed get isExecutingFirstTime(): boolean { return !this.wasExecuted && this.isExecuting; } -- cgit v1.2.3-54-g00ecf