cleanup(di): removed dead code

This commit is contained in:
vsavkin 2015-04-22 14:48:53 -07:00
parent 0ff99081bd
commit d74dd1126b
2 changed files with 0 additions and 14 deletions

View File

@ -876,18 +876,6 @@ export class ElementInjector extends TreeNode {
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) {
var ei = this;
if (! this._shouldIncludeSelf(depth)) {

View File

@ -18,11 +18,9 @@ import {MapWrapper} from 'angular2/src/facade/collection';
export class Key {
token;
id/* :int */;
metadata:any;
constructor(token, id/* :int */) {
this.token = token;
this.id = id;
this.metadata = null;
}
/**