Skip to content

Commit

Permalink
chore(lint): remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Oct 1, 2016
1 parent 610a769 commit 61b35c3
Show file tree
Hide file tree
Showing 44 changed files with 42 additions and 61 deletions.
1 change: 0 additions & 1 deletion modules/@angular/benchpress/src/metric/multi_metric.ts
Expand Up @@ -7,7 +7,6 @@
*/

import {Injector, OpaqueToken} from '@angular/core';
import {StringMapWrapper} from '../facade/collection';

import {Metric} from '../metric';

Expand Down
1 change: 0 additions & 1 deletion modules/@angular/benchpress/src/metric/user_metric.ts
Expand Up @@ -9,7 +9,6 @@
import {Inject, Injectable} from '@angular/core';

import {Options} from '../common_options';
import {StringMapWrapper} from '../facade/collection';
import {isNumber} from '../facade/lang';
import {Metric} from '../metric';
import {WebDriverAdapter} from '../web_driver_adapter';
Expand Down
6 changes: 3 additions & 3 deletions modules/@angular/benchpress/src/reporter/util.ts
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/

import {StringMapWrapper} from '../facade/collection';

import {NumberWrapper} from '../facade/lang';
import {MeasureValues} from '../measure_values';
import {Statistic} from '../statistic';
Expand All @@ -19,7 +19,7 @@ export function sortedProps(obj: {[key: string]: any}) {
var props: string[] = [];
Object.keys(obj).forEach(prop => {
const value = obj[prop];
props.push(prop)
props.push(prop);
});
props.sort();
return props;
Expand All @@ -33,4 +33,4 @@ export function formatStats(validSamples: MeasureValues[], metricName: string):
// Note: Don't use the unicode character for +- as it might cause
// hickups for consoles...
return NumberWrapper.isNaN(cv) ? formattedMean : `${formattedMean}+-${Math.floor(cv)}%`;
}
}
5 changes: 2 additions & 3 deletions modules/@angular/benchpress/src/sample_description.ts
Expand Up @@ -6,10 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/

import {OpaqueToken} from '@angular/core';


import {Options} from './common_options';
import {StringMapWrapper} from './facade/collection';
import {Metric} from './metric';
import {Validator} from './validator';

Expand Down Expand Up @@ -44,7 +43,7 @@ export class SampleDescription {
descriptions.forEach(description => {
Object.keys(description).forEach(prop => {
const value = description[prop];
this.description[prop] = value
this.description[prop] = value;
});
});
}
Expand Down
Expand Up @@ -10,7 +10,6 @@ import {Provider} from '@angular/core';
import {AsyncTestCompleter, beforeEach, describe, expect, inject, it} from '@angular/core/testing/testing_internal';

import {Metric, Options, PerfLogEvent, PerfLogFeatures, PerflogMetric, ReflectiveInjector, WebDriverExtension} from '../../index';
import {StringMapWrapper} from '../../src/facade/collection';
import {isPresent} from '../../src/facade/lang';
import {TraceEventFactory} from '../trace_event_factory';

Expand Down
Expand Up @@ -7,12 +7,10 @@
*/

import {AngularCompilerOptions, ModuleMetadata} from '@angular/tsc-wrapped';
import * as fs from 'fs';
import * as path from 'path';
import * as ts from 'typescript';

import {ReflectorHost, ReflectorHostContext} from './reflector_host';
import {StaticSymbol} from './static_reflector';

const EXT = /(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/;
const DTS = /\.d\.ts$/;
Expand Down
2 changes: 1 addition & 1 deletion modules/@angular/compiler-cli/test/reflector_host_spec.ts
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/

import {beforeEach, ddescribe, describe, expect, iit, it} from '@angular/core/testing/testing_internal';
import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal';
import * as ts from 'typescript';

import {ReflectorHost} from '../src/reflector_host';
Expand Down
Expand Up @@ -9,7 +9,6 @@
import {StaticReflector, StaticReflectorHost, StaticSymbol} from '@angular/compiler-cli/src/static_reflector';
import {HostListener, animate, group, keyframes, sequence, state, style, transition, trigger} from '@angular/core';
import {ListWrapper} from '@angular/facade/src/collection';
import {isBlank} from '@angular/facade/src/lang';
import {MetadataCollector} from '@angular/tsc-wrapped';
import * as ts from 'typescript';

Expand Down
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/

import {StringMapWrapper} from '../facade/collection';

import {isPresent} from '../facade/lang';
import {Identifiers, resolveIdentifier} from '../identifiers';
import * as o from '../output/output_ast';
Expand Down
Expand Up @@ -485,7 +485,7 @@ function _parseTransitionAnimation(
(keyframe: any /** TODO #9100 */) => keyframe.styles.styles.forEach(
(entry: any /** TODO #9100 */) => Object.keys(entry).forEach(prop => {
const value = entry[prop];
collectedStyles.insertAtTime(prop, currentTime, value)
collectedStyles.insertAtTime(prop, currentTime, value);
})));
} else {
// if the code reaches this stage then an error
Expand Down
2 changes: 1 addition & 1 deletion modules/@angular/compiler/src/compile_metadata.ts
Expand Up @@ -8,7 +8,7 @@

import {ChangeDetectionStrategy, SchemaMetadata, Type, ViewEncapsulation} from '@angular/core';

import {ListWrapper, MapWrapper, StringMapWrapper} from './facade/collection';
import {ListWrapper, MapWrapper} from './facade/collection';
import {isPresent, isStringMap, normalizeBlank, normalizeBool} from './facade/lang';
import {LifecycleHooks} from './private_import_core';
import {CssSelector} from './selector';
Expand Down
2 changes: 1 addition & 1 deletion modules/@angular/compiler/src/compiler.ts
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/

import {COMPILER_OPTIONS, Compiler, CompilerFactory, CompilerOptions, Inject, Injectable, Optional, PLATFORM_INITIALIZER, PlatformRef, Provider, ReflectiveInjector, TRANSLATIONS, TRANSLATIONS_FORMAT, Type, ViewEncapsulation, createPlatformFactory, isDevMode, platformCore} from '@angular/core';
import {COMPILER_OPTIONS, Compiler, CompilerFactory, CompilerOptions, Inject, Injectable, Optional, PLATFORM_INITIALIZER, ReflectiveInjector, TRANSLATIONS, TRANSLATIONS_FORMAT, Type, ViewEncapsulation, createPlatformFactory, isDevMode, platformCore} from '@angular/core';

export * from './template_parser/template_ast';
export {TEMPLATE_TRANSFORMS} from './template_parser/template_parser';
Expand Down
1 change: 0 additions & 1 deletion modules/@angular/compiler/src/output/value_util.ts
Expand Up @@ -8,7 +8,6 @@


import {CompileIdentifierMetadata} from '../compile_metadata';
import {StringMapWrapper} from '../facade/collection';
import {ValueTransformer, visitValue} from '../util';

import * as o from './output_ast';
Expand Down
Expand Up @@ -11,7 +11,6 @@ import {Inject, Injectable, OpaqueToken, Optional, SchemaMetadata, SecurityConte
import {CompileDirectiveMetadata, CompilePipeMetadata, CompileTemplateMetadata, CompileTokenMetadata, removeIdentifierDuplicates} from '../compile_metadata';
import {AST, ASTWithSource, BindingPipe, EmptyExpr, Interpolation, ParserError, RecursiveAstVisitor, TemplateBinding} from '../expression_parser/ast';
import {Parser} from '../expression_parser/parser';
import {StringMapWrapper} from '../facade/collection';
import {isPresent, isString} from '../facade/lang';
import {I18NHtmlParser} from '../i18n/i18n_html_parser';
import {Identifiers, identifierToken, resolveIdentifierToken} from '../identifiers';
Expand Down
1 change: 0 additions & 1 deletion modules/@angular/compiler/src/util.ts
Expand Up @@ -7,7 +7,6 @@
*/

import {CompileTokenMetadata} from './compile_metadata';
import {StringMapWrapper} from './facade/collection';
import {StringWrapper, isArray, isBlank, isPresent, isPrimitive, isStrictStringMap} from './facade/lang';
import * as o from './output/output_ast';

Expand Down
Expand Up @@ -8,7 +8,7 @@


import {CompileDiDependencyMetadata, CompileDirectiveMetadata, CompileIdentifierMetadata, CompileProviderMetadata, CompileQueryMetadata, CompileTokenMetadata} from '../compile_metadata';
import {ListWrapper, MapWrapper, StringMapWrapper} from '../facade/collection';
import {ListWrapper, MapWrapper} from '../facade/collection';
import {isPresent} from '../facade/lang';
import {Identifiers, identifierToken, resolveIdentifier, resolveIdentifierToken} from '../identifiers';
import * as o from '../output/output_ast';
Expand Down
Expand Up @@ -7,7 +7,6 @@
*/

import {CompileDirectiveMetadata} from '../compile_metadata';
import {StringMapWrapper} from '../facade/collection';
import {StringWrapper, isPresent} from '../facade/lang';
import {identifierToken} from '../identifiers';
import * as o from '../output/output_ast';
Expand Down
4 changes: 2 additions & 2 deletions modules/@angular/compiler/src/view_compiler/view_builder.ts
Expand Up @@ -8,8 +8,8 @@

import {ViewEncapsulation} from '@angular/core';

import {CompileDirectiveMetadata, CompileIdentifierMetadata, CompileTokenMetadata} from '../compile_metadata';
import {ListWrapper, StringMapWrapper} from '../facade/collection';
import {CompileDirectiveMetadata, CompileIdentifierMetadata} from '../compile_metadata';
import {ListWrapper} from '../facade/collection';
import {StringWrapper, isPresent} from '../facade/lang';
import {Identifiers, identifierToken, resolveIdentifier} from '../identifiers';
import * as o from '../output/output_ast';
Expand Down
Expand Up @@ -12,7 +12,6 @@ import {expect} from '@angular/platform-browser/testing/matchers';

import {AnimationEntryAst, AnimationGroupAst, AnimationKeyframeAst, AnimationSequenceAst, AnimationStepAst, AnimationStylesAst} from '../../src/animation/animation_ast';
import {AnimationParser} from '../../src/animation/animation_parser';
import {StringMapWrapper} from '../../src/facade/collection';
import {CompileMetadataResolver} from '../../src/metadata_resolver';
import {FILL_STYLE_FLAG, flattenStyles} from '../private_import_core';

Expand Down
2 changes: 1 addition & 1 deletion modules/@angular/core/src/animation/view_animation_map.ts
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/

import {StringMapWrapper} from '../facade/collection';

import {isPresent} from '../facade/lang';

import {AnimationPlayer} from './animation_player';
Expand Down
1 change: 0 additions & 1 deletion modules/@angular/core/src/linker/debug_context.ts
Expand Up @@ -7,7 +7,6 @@
*/

import {Injector} from '../di';
import {StringMapWrapper} from '../facade/collection';
import {isBlank, isPresent} from '../facade/lang';
import {RenderDebugInfo} from '../render/api';

Expand Down
4 changes: 2 additions & 2 deletions modules/@angular/core/src/reflection/reflector.ts
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/

import {MapWrapper, StringMapWrapper} from '../facade/collection';
import {MapWrapper} from '../facade/collection';
import {isPresent} from '../facade/lang';
import {Type} from '../type';
import {PlatformReflectionCapabilities} from './platform_reflection_capabilities';
Expand Down Expand Up @@ -183,6 +183,6 @@ export class Reflector extends ReflectorReader {
function _mergeMaps(target: Map<string, Function>, config: {[key: string]: Function}): void {
Object.keys(config).forEach(k => {
const v = config[k];
target.set(k, v)
target.set(k, v);
});
}
Expand Up @@ -8,7 +8,7 @@

import {ElementSchemaRegistry} from '@angular/compiler/src/schema/element_schema_registry';
import {TEST_COMPILER_PROVIDERS} from '@angular/compiler/testing/test_bindings';
import {AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, DebugElement, Directive, DoCheck, Injectable, Input, OnChanges, OnDestroy, OnInit, Output, Pipe, PipeTransform, RenderComponentType, Renderer, RootRenderer, SimpleChange, SimpleChanges, TemplateRef, Type, ViewContainerRef, WrappedValue} from '@angular/core';
import {AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, DebugElement, Directive, DoCheck, Injectable, Input, OnChanges, OnDestroy, OnInit, Output, Pipe, PipeTransform, RenderComponentType, Renderer, RootRenderer, SimpleChanges, TemplateRef, Type, ViewContainerRef, WrappedValue} from '@angular/core';
import {DebugDomRenderer} from '@angular/core/src/debug/debug_renderer';
import {ComponentFixture, TestBed, fakeAsync} from '@angular/core/testing';
import {By} from '@angular/platform-browser/src/dom/debug/by';
Expand All @@ -17,7 +17,6 @@ import {DomRootRenderer} from '@angular/platform-browser/src/dom/dom_renderer';

import {MockSchemaRegistry} from '../../../compiler/testing/index';
import {EventEmitter} from '../../src/facade/async';
import {StringMapWrapper} from '../../src/facade/collection';
import {NumberWrapper} from '../../src/facade/lang';

export function main() {
Expand Down Expand Up @@ -1350,7 +1349,7 @@ class TestDirective implements OnInit, DoCheck, OnChanges, AfterContentInit, Aft
const r: {[k: string]: string} = {};
Object.keys(changes).forEach(key => {
const c = changes[key];
r[key] = c.currentValue
r[key] = c.currentValue;
});
this.changes = r;
if (this.throwOn == 'ngOnChanges') {
Expand Down
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/

import {Directive, ElementRef, Host, Input, OnDestroy, OpaqueToken, Optional, Renderer, Type, forwardRef} from '@angular/core';
import {Directive, ElementRef, Host, Input, OnDestroy, Optional, Renderer, forwardRef} from '@angular/core';

import {MapWrapper} from '../facade/collection';
import {StringWrapper, isBlank, isPresent, isPrimitive, isString, looseIdentical} from '../facade/lang';
Expand Down
1 change: 0 additions & 1 deletion modules/@angular/forms/src/form_builder.ts
Expand Up @@ -9,7 +9,6 @@
import {Injectable} from '@angular/core';

import {AsyncValidatorFn, ValidatorFn} from './directives/validators';
import {StringMapWrapper} from './facade/collection';
import {isArray, isPresent} from './facade/lang';
import {AbstractControl, FormArray, FormControl, FormGroup} from './model';

Expand Down
2 changes: 1 addition & 1 deletion modules/@angular/http/src/headers.ts
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/

import {ListWrapper, MapWrapper, StringMapWrapper, isListLikeIterable, iterateListLike} from '../src/facade/collection';
import {ListWrapper, MapWrapper, isListLikeIterable, iterateListLike} from '../src/facade/collection';

/**
* Polyfill for [Headers](https://developer.mozilla.org/en-US/docs/Web/API/Headers/Headers), as
Expand Down
Expand Up @@ -7,7 +7,7 @@
*/

import {ResourceLoader, platformCoreDynamic} from '@angular/compiler';
import {PlatformRef, Provider, createPlatformFactory} from '@angular/core';
import {Provider, createPlatformFactory} from '@angular/core';

import {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';
import {CachedResourceLoader} from './resource_loader/resource_loader_cache';
Expand Down
2 changes: 1 addition & 1 deletion modules/@angular/platform-browser-dynamic/testing/index.ts
Expand Up @@ -7,7 +7,7 @@
*/

import {platformCoreDynamicTesting} from '@angular/compiler/testing';
import {NgModule, PlatformRef, Provider, createPlatformFactory} from '@angular/core';
import {NgModule, createPlatformFactory} from '@angular/core';
import {TestComponentRenderer} from '@angular/core/testing';
import {BrowserTestingModule} from '@angular/platform-browser/testing';

Expand Down
2 changes: 1 addition & 1 deletion modules/@angular/platform-browser/src/browser.ts
Expand Up @@ -7,7 +7,7 @@
*/

import {CommonModule, PlatformLocation} from '@angular/common';
import {ApplicationModule, ErrorHandler, NgModule, Optional, PLATFORM_INITIALIZER, PlatformRef, Provider, RootRenderer, Sanitizer, SkipSelf, Testability, createPlatformFactory, platformCore} from '@angular/core';
import {ApplicationModule, ErrorHandler, NgModule, Optional, PLATFORM_INITIALIZER, Provider, RootRenderer, Sanitizer, SkipSelf, Testability, createPlatformFactory, platformCore} from '@angular/core';

import {AnimationDriver} from '../src/dom/animation_driver';
import {WebAnimationsDriver} from '../src/dom/web_animations_driver';
Expand Down
Expand Up @@ -7,8 +7,6 @@
*/

import {AUTO_STYLE} from '@angular/core';

import {StringMapWrapper} from '../facade/collection';
import {StringWrapper, isNumber, isPresent} from '../facade/lang';
import {AnimationKeyframe, AnimationStyles} from '../private_import_core';

Expand Down
Expand Up @@ -7,8 +7,6 @@
*/

import {AUTO_STYLE} from '@angular/core';

import {StringMapWrapper} from '../facade/collection';
import {isPresent} from '../facade/lang';
import {AnimationPlayer} from '../private_import_core';

Expand Down
Expand Up @@ -12,7 +12,6 @@ import {el} from '@angular/platform-browser/testing/browser_util';
import {DomAnimatePlayer} from '../../src/dom/dom_animate_player';
import {WebAnimationsDriver} from '../../src/dom/web_animations_driver';
import {WebAnimationsPlayer} from '../../src/dom/web_animations_player';
import {StringMapWrapper} from '../../src/facade/collection';
import {AnimationKeyframe, AnimationStyles} from '../../src/private_import_core';
import {MockDomAnimatePlayer} from '../../testing/mock_dom_animate_player';

Expand Down
2 changes: 1 addition & 1 deletion modules/@angular/platform-browser/testing/browser.ts
Expand Up @@ -5,7 +5,7 @@
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {APP_ID, NgModule, NgZone, PLATFORM_INITIALIZER, PlatformRef, Provider, createPlatformFactory, platformCore} from '@angular/core';
import {APP_ID, NgModule, NgZone, PLATFORM_INITIALIZER, Provider, createPlatformFactory, platformCore} from '@angular/core';
import {AnimationDriver, BrowserModule} from '@angular/platform-browser';

import {BrowserDetection, createNgZone} from './browser_util';
Expand Down
2 changes: 1 addition & 1 deletion modules/@angular/platform-browser/testing/matchers.ts
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/

import {StringMapWrapper} from './facade/collection';

import {global, isString} from './facade/lang';
import {getDOM} from './private_import_platform-browser';

Expand Down
Expand Up @@ -9,8 +9,6 @@
import {AnimationPlayer} from '@angular/core';
import {MockAnimationPlayer} from '@angular/core/testing/testing_internal';
import {AnimationDriver} from '@angular/platform-browser';

import {StringMapWrapper} from './facade/collection';
import {AnimationKeyframe, AnimationStyles} from './private_import_core';

export class MockAnimationDriver extends AnimationDriver {
Expand Down
2 changes: 1 addition & 1 deletion modules/@angular/platform-server/src/parse5_adapter.ts
Expand Up @@ -8,7 +8,7 @@

const parse5 = require('parse5');

import {ListWrapper, StringMapWrapper} from '../src/facade/collection';
import {ListWrapper} from '../src/facade/collection';
import {DomAdapter, setRootDomAdapter} from './private_import_platform-browser';
import {isPresent, isBlank, global, setValueOnPath} from '../src/facade/lang';
import {SelectorMatcher, CssSelector} from './private_import_compiler';
Expand Down
2 changes: 1 addition & 1 deletion modules/@angular/platform-server/src/server.ts
Expand Up @@ -8,7 +8,7 @@

import {PlatformLocation} from '@angular/common';
import {platformCoreDynamic} from '@angular/compiler';
import {NgModule, PLATFORM_INITIALIZER, PlatformRef, Provider, createPlatformFactory, platformCore} from '@angular/core';
import {NgModule, PLATFORM_INITIALIZER, createPlatformFactory, platformCore} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';

import {Parse5DomAdapter} from './parse5_adapter';
Expand Down
2 changes: 1 addition & 1 deletion modules/@angular/platform-server/testing/server.ts
Expand Up @@ -7,7 +7,7 @@
*/

import {platformCoreDynamicTesting} from '@angular/compiler/testing';
import {NgModule, PlatformRef, Provider, createPlatformFactory} from '@angular/core';
import {NgModule, createPlatformFactory} from '@angular/core';
import {BrowserDynamicTestingModule} from '@angular/platform-browser-dynamic/testing';
import {INTERNAL_SERVER_PLATFORM_PROVIDERS} from './private_import_platform_server';

Expand Down
Expand Up @@ -7,7 +7,7 @@
*/

import {ResourceLoader, platformCoreDynamic} from '@angular/compiler';
import {COMPILER_OPTIONS, PlatformRef, Provider, createPlatformFactory} from '@angular/core';
import {COMPILER_OPTIONS, createPlatformFactory} from '@angular/core';
import {ResourceLoaderImpl} from './private_import_platform-browser-dynamic';


Expand Down

0 comments on commit 61b35c3

Please sign in to comment.