mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
Remove unused type
This commit is contained in:
parent
38771693c6
commit
b4d5b984ed
@ -113,7 +113,7 @@ module TypeScript.Services {
|
||||
}
|
||||
}
|
||||
|
||||
export class SyntaxTreeCache {
|
||||
class SyntaxTreeCache {
|
||||
private _hostCache: HostCache;
|
||||
|
||||
// For our syntactic only features, we also keep a cache of the syntax tree for the
|
||||
@ -288,38 +288,6 @@ module TypeScript.Services {
|
||||
releaseDocument(filename: string, compilationSettings: ts.CompilerOptions): void
|
||||
}
|
||||
|
||||
export class NonCachingDocumentRegistry implements IDocumentRegistry {
|
||||
|
||||
public static Instance: IDocumentRegistry = new NonCachingDocumentRegistry();
|
||||
|
||||
public acquireDocument(
|
||||
filename: string,
|
||||
compilationSettings: ts.CompilerOptions,
|
||||
scriptSnapshot: IScriptSnapshot,
|
||||
byteOrderMark: ByteOrderMark,
|
||||
version: number,
|
||||
isOpen: boolean,
|
||||
referencedFiles: string[]= []): TypeScript.Document {
|
||||
return Document.create(compilationSettings, filename, scriptSnapshot, byteOrderMark, version, isOpen, referencedFiles);
|
||||
}
|
||||
|
||||
public updateDocument(
|
||||
document: Document,
|
||||
filename: string,
|
||||
compilationSettings: ts.CompilerOptions,
|
||||
scriptSnapshot: IScriptSnapshot,
|
||||
version: number,
|
||||
isOpen: boolean,
|
||||
textChangeRange: TextChangeRange
|
||||
): TypeScript.Document {
|
||||
return document.update(scriptSnapshot, version, isOpen, textChangeRange);
|
||||
}
|
||||
|
||||
public releaseDocument(filename: string, compilationSettings: ts.CompilerOptions): void {
|
||||
// no op since this class doesn't cache anything
|
||||
}
|
||||
}
|
||||
|
||||
export class DocumentRegistry implements IDocumentRegistry {
|
||||
private buckets: ts.Map<ts.Map<DocumentRegistryEntry>> = {};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user