Skip to content

Commit d8fb8a9

Browse files
committed
Remove unused NonCachingDocumentRegistry
1 parent bbbec22 commit d8fb8a9

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

src/harness/harnessLanguageService.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -94,34 +94,6 @@ module Harness.LanguageService {
9494
}
9595
}
9696

97-
export class NonCachingDocumentRegistry implements ts.DocumentRegistry {
98-
public static Instance: ts.DocumentRegistry = new NonCachingDocumentRegistry();
99-
100-
public acquireDocument(
101-
fileName: string,
102-
compilationSettings: ts.CompilerOptions,
103-
scriptSnapshot: ts.IScriptSnapshot,
104-
version: string): ts.SourceFile {
105-
var sourceFile = ts.createSourceFile(fileName, scriptSnapshot.getText(0, scriptSnapshot.getLength()), compilationSettings.target);
106-
sourceFile.version = version;
107-
return sourceFile;
108-
}
109-
110-
public updateDocument(
111-
document: ts.SourceFile,
112-
fileName: string,
113-
compilationSettings: ts.CompilerOptions,
114-
scriptSnapshot: ts.IScriptSnapshot,
115-
version: string,
116-
textChangeRange: ts.TextChangeRange
117-
): ts.SourceFile {
118-
return ts.updateLanguageServiceSourceFile(document, scriptSnapshot, version, textChangeRange);
119-
}
120-
121-
public releaseDocument(fileName: string, compilationSettings: ts.CompilerOptions): void {
122-
// no op since this class doesn't cache anything
123-
}
124-
}
12597
export class TypeScriptLS implements ts.LanguageServiceShimHost {
12698
private ls: ts.LanguageServiceShim = null;
12799

0 commit comments

Comments
 (0)