From 31b4d77c5f8d8c478877b9529387b0febbd848ac Mon Sep 17 00:00:00 2001 From: taefi Date: Wed, 7 Aug 2024 11:15:02 +0300 Subject: [PATCH] remove unused find and remove methods from ImportManager.ts --- .../src/dependencies/ImportManager.ts | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/packages/ts/generator-utils/src/dependencies/ImportManager.ts b/packages/ts/generator-utils/src/dependencies/ImportManager.ts index 12e92dc73d..47070696bf 100644 --- a/packages/ts/generator-utils/src/dependencies/ImportManager.ts +++ b/packages/ts/generator-utils/src/dependencies/ImportManager.ts @@ -37,17 +37,6 @@ export class NamedImportManager extends StatementRecordManager boolean): [string, string, boolean, Identifier] | undefined { - for (const [path, specifiers] of this.#map) { - for (const [specifier, { id, isType }] of specifiers) { - if (predicate(path, specifier)) { - return [path, specifier, isType, id]; - } - } - } - return undefined; - } - override clear(): void { this.#map.clear(); } @@ -116,21 +105,6 @@ export class NamespaceImportManager extends StatementRecordManager boolean): string | undefined { - for (const [path, id] of this.#map) { - if (predicate(id)) { - return path; - } - } - return undefined; - } - override clear(): void { this.#map.clear(); }