Skip to content

Commit 3b50acc

Browse files
committed
perf: remove useless code
1 parent 052de62 commit 3b50acc

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

src/copilot/copilotHelper.ts

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,6 @@ export interface IProjectDependenciesResult {
5151
* Helper class for Copilot integration to analyze Java project dependencies
5252
*/
5353
export namespace CopilotHelper {
54-
/**
55-
* Resolves all local project types imported by the given file (backward compatibility version)
56-
* @param fileUri The URI of the Java file to analyze
57-
* @param cancellationToken Optional cancellation token to abort the operation
58-
* @returns Array of import class information
59-
*/
60-
export async function resolveLocalImports(fileUri: Uri, cancellationToken?: CancellationToken): Promise<INodeImportClass[]> {
61-
const result = await resolveLocalImportsWithReason(fileUri, cancellationToken);
62-
return result.classInfoList;
63-
}
64-
6554
/**
6655
* Resolves all local project types imported by the given file with detailed error reporting
6756
* @param fileUri The URI of the Java file to analyze
@@ -143,24 +132,6 @@ export namespace CopilotHelper {
143132
}
144133
}
145134

146-
/**
147-
* Resolves project dependencies for the given project URI (backward compatibility version)
148-
* @param projectUri The URI of the Java project to analyze
149-
* @param cancellationToken Optional cancellation token to abort the operation
150-
* @returns Object containing project dependencies as key-value pairs
151-
*/
152-
export async function resolveProjectDependencies(projectUri: Uri, cancellationToken?: CancellationToken): Promise<IProjectDependency> {
153-
const result = await resolveProjectDependenciesWithReason(projectUri, cancellationToken);
154-
155-
// Convert to legacy format
156-
const dependencies: IProjectDependency = {};
157-
for (const dep of result.dependencyInfoList) {
158-
dependencies[dep.key] = dep.value;
159-
}
160-
161-
return dependencies;
162-
}
163-
164135
/**
165136
* Resolves project dependencies with detailed error reporting
166137
* @param projectUri The URI of the Java project to analyze

0 commit comments

Comments
 (0)