File tree 1 file changed +0
-6
lines changed
1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ namespace ts {
13
13
const rawSources : string [ ] = [ ] ;
14
14
const sources : string [ ] = [ ] ;
15
15
const sourceToSourceIndexMap = new Map < string , number > ( ) ;
16
- const fileNameToSourceIndexMap = new Map < string , number > ( ) ;
17
16
let sourcesContent : ( string | null ) [ ] | undefined ;
18
17
19
18
const names : string [ ] = [ ] ;
@@ -52,10 +51,6 @@ namespace ts {
52
51
53
52
function addSource ( fileName : string ) {
54
53
enter ( ) ;
55
- const sourceIndexByFileName = fileNameToSourceIndexMap . get ( fileName ) ;
56
- if ( sourceIndexByFileName !== undefined ) {
57
- return sourceIndexByFileName ;
58
- }
59
54
const source = getRelativePathToDirectoryOrUrl ( sourcesDirectoryPath ,
60
55
fileName ,
61
56
host . getCurrentDirectory ( ) ,
@@ -69,7 +64,6 @@ namespace ts {
69
64
rawSources . push ( fileName ) ;
70
65
sourceToSourceIndexMap . set ( source , sourceIndex ) ;
71
66
}
72
- fileNameToSourceIndexMap . set ( fileName , sourceIndex ) ;
73
67
exit ( ) ;
74
68
return sourceIndex ;
75
69
}
You can’t perform that action at this time.
0 commit comments