diff --git a/modules/@angular/compiler-cli/src/codegen.ts b/modules/@angular/compiler-cli/src/codegen.ts index 2bc5561a6537e6..7718a31ff60b23 100644 --- a/modules/@angular/compiler-cli/src/codegen.ts +++ b/modules/@angular/compiler-cli/src/codegen.ts @@ -11,7 +11,6 @@ * Intended to be used in a build step. */ import * as compiler from '@angular/compiler'; -import {ViewEncapsulation} from '@angular/core'; import {AngularCompilerOptions, NgcCliOptions} from '@angular/tsc-wrapped'; import {readFileSync} from 'fs'; import * as path from 'path'; @@ -19,7 +18,6 @@ import * as ts from 'typescript'; import {CompilerHost, CompilerHostContext, ModuleResolutionHostAdapter} from './compiler_host'; import {PathMappedCompilerHost} from './path_mapped_compiler_host'; -import {Console} from './private_import_core'; const GENERATED_META_FILES = /\.json$/; diff --git a/modules/@angular/compiler/src/directive_wrapper_compiler.ts b/modules/@angular/compiler/src/directive_wrapper_compiler.ts index 48673a7a076ba4..edce015bec2b74 100644 --- a/modules/@angular/compiler/src/directive_wrapper_compiler.ts +++ b/modules/@angular/compiler/src/directive_wrapper_compiler.ts @@ -18,7 +18,7 @@ import {DEFAULT_INTERPOLATION_CONFIG} from './ml_parser/interpolation_config'; import {ClassBuilder, createClassStmt} from './output/class_builder'; import * as o from './output/output_ast'; import {ParseError, ParseErrorLevel, ParseLocation, ParseSourceFile, ParseSourceSpan} from './parse_util'; -import {Console, LifecycleHooks, isDefaultChangeDetectionStrategy} from './private_import_core'; +import {Console, LifecycleHooks} from './private_import_core'; import {ElementSchemaRegistry} from './schema/element_schema_registry'; import {BindingParser} from './template_parser/binding_parser'; import {BoundElementPropertyAst, BoundEventAst} from './template_parser/template_ast'; diff --git a/modules/@angular/compiler/test/selector_spec.ts b/modules/@angular/compiler/test/selector_spec.ts index c39a1d51b88ed5..36825c414aa998 100644 --- a/modules/@angular/compiler/test/selector_spec.ts +++ b/modules/@angular/compiler/test/selector_spec.ts @@ -7,7 +7,6 @@ */ import {CssSelector, SelectorMatcher} from '@angular/compiler/src/selector'; -import {createElementCssSelector} from '@angular/compiler/src/template_parser/template_parser'; import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; import {el} from '@angular/platform-browser/testing/browser_util'; diff --git a/modules/@angular/language-service/test/completions_spec.ts b/modules/@angular/language-service/test/completions_spec.ts index 54dda028d01e70..db4dc1e2f8fbb5 100644 --- a/modules/@angular/language-service/test/completions_spec.ts +++ b/modules/@angular/language-service/test/completions_spec.ts @@ -10,17 +10,16 @@ import 'reflect-metadata'; import * as ts from 'typescript'; import {createLanguageService} from '../src/language_service'; -import {Completions, Diagnostic, Diagnostics} from '../src/types'; +import {Completions} from '../src/types'; import {TypeScriptServiceHost} from '../src/typescript_host'; import {toh} from './test_data'; -import {MockTypescriptHost, includeDiagnostic, noDiagnostics} from './test_utils'; +import {MockTypescriptHost} from './test_utils'; describe('completions', () => { let documentRegistry = ts.createDocumentRegistry(); let mockHost = new MockTypescriptHost(['/app/main.ts', '/app/parsing-cases.ts'], toh); let service = ts.createLanguageService(mockHost, documentRegistry); - let program = service.getProgram(); let ngHost = new TypeScriptServiceHost(mockHost, service); let ngService = createLanguageService(ngHost); ngHost.setSite(ngService); diff --git a/modules/@angular/language-service/test/definitions_spec.ts b/modules/@angular/language-service/test/definitions_spec.ts index 4aaeb9216142e3..99080731f495a5 100644 --- a/modules/@angular/language-service/test/definitions_spec.ts +++ b/modules/@angular/language-service/test/definitions_spec.ts @@ -9,7 +9,7 @@ import * as ts from 'typescript'; import {createLanguageService} from '../src/language_service'; -import {Completions, Diagnostic, Diagnostics, Span} from '../src/types'; +import {Span} from '../src/types'; import {TypeScriptServiceHost} from '../src/typescript_host'; import {toh} from './test_data'; @@ -20,7 +20,6 @@ describe('definitions', () => { let documentRegistry = ts.createDocumentRegistry(); let mockHost = new MockTypescriptHost(['/app/main.ts', '/app/parsing-cases.ts'], toh); let service = ts.createLanguageService(mockHost, documentRegistry); - let program = service.getProgram(); let ngHost = new TypeScriptServiceHost(mockHost, service); let ngService = createLanguageService(ngHost); ngHost.setSite(ngService); diff --git a/modules/@angular/language-service/test/diagnostics_spec.ts b/modules/@angular/language-service/test/diagnostics_spec.ts index 7385cc4e93aad9..c0df4daf63102f 100644 --- a/modules/@angular/language-service/test/diagnostics_spec.ts +++ b/modules/@angular/language-service/test/diagnostics_spec.ts @@ -9,7 +9,7 @@ import * as ts from 'typescript'; import {createLanguageService} from '../src/language_service'; -import {Completions, Diagnostic, Diagnostics} from '../src/types'; +import {Diagnostics} from '../src/types'; import {TypeScriptServiceHost} from '../src/typescript_host'; import {toh} from './test_data'; @@ -19,7 +19,6 @@ describe('diagnostics', () => { let documentRegistry = ts.createDocumentRegistry(); let mockHost = new MockTypescriptHost(['/app/main.ts', '/app/parsing-cases.ts'], toh); let service = ts.createLanguageService(mockHost, documentRegistry); - let program = service.getProgram(); let ngHost = new TypeScriptServiceHost(mockHost, service); let ngService = createLanguageService(ngHost); ngHost.setSite(ngService); diff --git a/modules/@angular/language-service/test/hover_spec.ts b/modules/@angular/language-service/test/hover_spec.ts index b476957009a24d..5cf7a8a926fa88 100644 --- a/modules/@angular/language-service/test/hover_spec.ts +++ b/modules/@angular/language-service/test/hover_spec.ts @@ -11,17 +11,16 @@ import 'reflect-metadata'; import * as ts from 'typescript'; import {createLanguageService} from '../src/language_service'; -import {Hover, HoverTextSection} from '../src/types'; +import {Hover} from '../src/types'; import {TypeScriptServiceHost} from '../src/typescript_host'; import {toh} from './test_data'; -import {MockTypescriptHost, includeDiagnostic, noDiagnostics} from './test_utils'; +import {MockTypescriptHost} from './test_utils'; describe('hover', () => { let documentRegistry = ts.createDocumentRegistry(); let mockHost = new MockTypescriptHost(['/app/main.ts', '/app/parsing-cases.ts'], toh); let service = ts.createLanguageService(mockHost, documentRegistry); - let program = service.getProgram(); let ngHost = new TypeScriptServiceHost(mockHost, service); let ngService = createLanguageService(ngHost); ngHost.setSite(ngService);