Remove unused type

This commit is contained in:
Mohamed Hegazy 2014-07-24 10:57:20 -07:00
parent 38771693c6
commit b4d5b984ed

View File

@ -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>> = {};