From dd1db35513257abc6f36da5f8608afdde1bc4dd8 Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 6 Dec 2023 20:46:23 -0500 Subject: final cleanup --- src/client/util/Scripting.ts | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'src/client/util/Scripting.ts') diff --git a/src/client/util/Scripting.ts b/src/client/util/Scripting.ts index b3c694024..f0a5f9ed9 100644 --- a/src/client/util/Scripting.ts +++ b/src/client/util/Scripting.ts @@ -120,34 +120,6 @@ class ScriptingCompilerHost { } return undefined; } - resolveModuleNames(moduleNames: string[], containingFile: string): any { - const resolvedModules: ts.ResolvedModule[] = []; - for (const moduleName of moduleNames) { - // try to use standard resolution - let result = ts.resolveModuleName( - moduleName, - containingFile, - {}, - { - fileExists: (fileName: string) => true as any, - readFile: (fileName: string) => 'true', - } - ); - if (result.resolvedModule) { - resolvedModules.push(result.resolvedModule); - } else { - // check fallback locations, for simplicity assume that module at location - // should be represented by '.d.ts' file - // for (const location of moduleSearchLocations) { - // const modulePath = path.join(location, moduleName + ".d.ts"); - // if (fileExists(modulePath)) { - // resolvedModules.push({ resolvedFileName: modulePath }); - // } - // } - } - } - return resolvedModules; - } // getDefaultLibFileName(options: ts.CompilerOptions): string { getDefaultLibFileName(options: any): string { -- cgit v1.2.3-70-g09d2