@@ -35,8 +35,6 @@ namespace ts {
35
35
36
36
/** Emit the changed files and clear the cache of the changed files */
37
37
emitChangedFiles ( program : Program ) : EmitOutputDetailed [ ] ;
38
- /** Get the changed files since last query and then clear the cache of changed files */
39
- getChangedProgramFiles ( program : Program ) : ChangedProgramFiles ;
40
38
/** When called gets the semantic diagnostics for the program. It also caches the diagnostics and manage them */
41
39
getSemanticDiagnostics ( program : Program , cancellationToken ?: CancellationToken ) : Diagnostic [ ] ;
42
40
@@ -103,7 +101,6 @@ namespace ts {
103
101
getFilesAffectedBy,
104
102
emitFile,
105
103
emitChangedFiles,
106
- getChangedProgramFiles,
107
104
getSemanticDiagnostics,
108
105
clear
109
106
} ;
@@ -273,30 +270,6 @@ namespace ts {
273
270
return diagnostics || emptyArray ;
274
271
}
275
272
276
- function getChangedProgramFiles ( program : Program ) : ChangedProgramFiles {
277
- ensureProgramGraph ( program ) ;
278
-
279
- let filesToEmit : string [ ] ;
280
- const changedFiles = createMap < string > ( ) ;
281
- enumerateChangedFilesEmitOutput ( program , /*emitOnlyDtsFiles*/ true ,
282
- // All the changed files are required to get diagnostics
283
- ( changedFileName , changedFilePath ) => addFileForDiagnostics ( changedFileName , changedFilePath ) ,
284
- // Emitted file is for emit as well as diagnostic
285
- ( _emitOutput , sourceFile ) => {
286
- ( filesToEmit || ( filesToEmit = [ ] ) ) . push ( sourceFile . fileName ) ;
287
- addFileForDiagnostics ( sourceFile . fileName , sourceFile . path ) ;
288
- } ) ;
289
- changedFileNames . clear ( ) ;
290
- return {
291
- filesToEmit : filesToEmit || emptyArray ,
292
- changedFiles : arrayFrom ( changedFiles . values ( ) )
293
- } ;
294
-
295
- function addFileForDiagnostics ( fileName : string , path : Path ) {
296
- changedFiles . set ( path , fileName ) ;
297
- }
298
- }
299
-
300
273
function clear ( ) {
301
274
isModuleEmit = undefined ;
302
275
emitHandler = undefined ;
0 commit comments