Skip to content

Commit d74dd11

Browse files
committed
cleanup(di): removed dead code
1 parent 0ff9908 commit d74dd11

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

modules/angular2/src/core/compiler/element_injector.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -876,18 +876,6 @@ export class ElementInjector extends TreeNode {
876876
if (this._query2 == query) this._query2 = null;
877877
}
878878

879-
/*
880-
* It is fairly easy to annotate keys with metadata.
881-
* For example, key.metadata = 'directive'.
882-
*
883-
* This would allows to do the lookup more efficiently.
884-
*
885-
* for example
886-
* we would lookup pre built objects only when metadata = 'preBuilt'
887-
* we would lookup directives only when metadata = 'directive'
888-
*
889-
* Write benchmarks before doing this optimization.
890-
*/
891879
_getByKey(key:Key, depth:number, optional:boolean, requestor:Key) {
892880
var ei = this;
893881
if (! this._shouldIncludeSelf(depth)) {

modules/angular2/src/di/key.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ import {MapWrapper} from 'angular2/src/facade/collection';
1818
export class Key {
1919
token;
2020
id/* :int */;
21-
metadata:any;
2221
constructor(token, id/* :int */) {
2322
this.token = token;
2423
this.id = id;
25-
this.metadata = null;
2624
}
2725

2826
/**

0 commit comments

Comments
 (0)