Skip to content

Commit dbda6ba

Browse files
committed
remove unsued function
1 parent 0ad0def commit dbda6ba

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/compiler/program.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,11 +377,6 @@ func (p *Program) GetResolvedModules() map[tspath.Path]module.ModeAwareCache[*mo
377377
return p.resolvedModules
378378
}
379379

380-
func (p *Program) findSourceFile(candidate string, reason FileIncludeReason) *ast.SourceFile {
381-
path := tspath.ToPath(candidate, p.GetCurrentDirectory(), p.UseCaseSensitiveFileNames())
382-
return p.filesByPath[path]
383-
}
384-
385380
func (p *Program) GetSyntacticDiagnostics(ctx context.Context, sourceFile *ast.SourceFile) []*ast.Diagnostic {
386381
return p.getDiagnosticsHelper(ctx, sourceFile, false /*ensureBound*/, false /*ensureChecked*/, p.getSyntacticDiagnosticsForFile)
387382
}

0 commit comments

Comments
 (0)