From b4d5b984edb24216bfdc58f812602f209800a490 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 24 Jul 2014 10:57:20 -0700 Subject: [PATCH] Remove unused type --- src/services/pullLanguageService.ts | 34 +---------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/src/services/pullLanguageService.ts b/src/services/pullLanguageService.ts index c8926cd4a5f..97ea7cacd1d 100644 --- a/src/services/pullLanguageService.ts +++ b/src/services/pullLanguageService.ts @@ -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> = {};