Skip to content

Commit 9472c0b

Browse files
committed
Remove now-unused function
`doesNameResolveToLocalSymbolForExportDefault` is no longer used, so delete it.
1 parent e62603b commit 9472c0b

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/compiler/checker.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -677,12 +677,6 @@ namespace ts {
677677
return result;
678678
}
679679

680-
function doesNameResolveToLocalSymbolForExportDefault(exports: SymbolTable, meaning: SymbolFlags, name: string): boolean {
681-
const defaultExport = exports["default"];
682-
const localSymbol = getLocalSymbolForExportDefault(defaultExport);
683-
return defaultExport && (defaultExport.flags & meaning) && localSymbol && localSymbol.name === name;
684-
}
685-
686680
function checkResolvedBlockScopedVariable(result: Symbol, errorLocation: Node): void {
687681
Debug.assert((result.flags & SymbolFlags.BlockScopedVariable) !== 0);
688682
// Block-scoped variables cannot be used before their definition

0 commit comments

Comments
 (0)