refactor(facade): remove useless facades

This commit is contained in:
Victor Berchet
2016-09-18 15:39:26 -07:00
committed by Chuck Jazdzewski
parent e82a78e641
commit 7e5413da89
24 changed files with 91 additions and 159 deletions

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {Math, StringWrapper} from '../src/facade/lang';
import {StringWrapper} from '../src/facade/lang';
import {OpaqueToken} from './di';

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {MapWrapper, SetWrapper, StringMapWrapper} from '../facade/collection';
import {MapWrapper, StringMapWrapper} from '../facade/collection';
import {isPresent} from '../facade/lang';
import {Type} from '../type';
import {PlatformReflectionCapabilities} from './platform_reflection_capabilities';
@ -64,7 +64,7 @@ export class Reflector extends ReflectorReader {
throw new Error('Usage tracking is disabled');
}
var allTypes = MapWrapper.keys(this._injectableInfo);
return allTypes.filter(key => !SetWrapper.has(this._usedKeys, key));
return allTypes.filter(key => !this._usedKeys.has(key));
}
registerFunction(func: Function, funcInfo: ReflectionInfo): void {

View File

@ -8,9 +8,9 @@
import {AsyncTestCompleter} from './async_test_completer';
import {StringMapWrapper} from './facade/collection';
import {Math, global} from './facade/lang';
import {global} from './facade/lang';
import {isPromise} from './private_import_core';
import {TestBed, getTestBed, inject} from './test_bed';
import {getTestBed, inject} from './test_bed';
export {AsyncTestCompleter} from './async_test_completer';
export {MockAnimationPlayer} from './mock_animation_player';