cleanup(di): removed dead code
This commit is contained in:
parent
0ff99081bd
commit
d74dd1126b
|
@ -876,18 +876,6 @@ export class ElementInjector extends TreeNode {
|
||||||
if (this._query2 == query) this._query2 = null;
|
if (this._query2 == query) this._query2 = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* It is fairly easy to annotate keys with metadata.
|
|
||||||
* For example, key.metadata = 'directive'.
|
|
||||||
*
|
|
||||||
* This would allows to do the lookup more efficiently.
|
|
||||||
*
|
|
||||||
* for example
|
|
||||||
* we would lookup pre built objects only when metadata = 'preBuilt'
|
|
||||||
* we would lookup directives only when metadata = 'directive'
|
|
||||||
*
|
|
||||||
* Write benchmarks before doing this optimization.
|
|
||||||
*/
|
|
||||||
_getByKey(key:Key, depth:number, optional:boolean, requestor:Key) {
|
_getByKey(key:Key, depth:number, optional:boolean, requestor:Key) {
|
||||||
var ei = this;
|
var ei = this;
|
||||||
if (! this._shouldIncludeSelf(depth)) {
|
if (! this._shouldIncludeSelf(depth)) {
|
||||||
|
|
|
@ -18,11 +18,9 @@ import {MapWrapper} from 'angular2/src/facade/collection';
|
||||||
export class Key {
|
export class Key {
|
||||||
token;
|
token;
|
||||||
id/* :int */;
|
id/* :int */;
|
||||||
metadata:any;
|
|
||||||
constructor(token, id/* :int */) {
|
constructor(token, id/* :int */) {
|
||||||
this.token = token;
|
this.token = token;
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.metadata = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue