chore(compiler): dead code clean-up.

Dead code that uglifyJS found.

Closes #4907
This commit is contained in:
Rado Kirov 2015-10-26 07:23:13 -07:00 committed by Rado Kirov
parent ea6b316932
commit bfe3efab3b
6 changed files with 0 additions and 28 deletions

View File

@ -391,10 +391,7 @@ export class DynamicChangeDetector extends AbstractChangeDetector<any> {
_readContext(proto: ProtoRecord, values: any[]) {
if (proto.contextIndex == -1) {
return this._getDirectiveFor(proto.directiveIndex);
} else {
return values[proto.contextIndex];
}
return values[proto.contextIndex];
}

View File

@ -19,8 +19,6 @@ import {
import {escapeDoubleQuoteString} from './util';
import {Injectable} from 'angular2/src/core/di';
const NG_NON_BINDABLE = 'ng-non-bindable';
@Injectable()
export class HtmlParser {
parse(template: string, sourceInfo: string): HtmlAst[] {

View File

@ -20,10 +20,6 @@ import {reflector} from 'angular2/src/core/reflection/reflection';
import {Injectable} from 'angular2/src/core/di';
import {MODULE_SUFFIX} from './util';
// group 1: "property" from "[property]"
// group 2: "event" from "(event)"
var HOST_REG_EXP = /^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))$/g;
@Injectable()
export class RuntimeMetadataResolver {
private _cache = new Map<Type, cpl.CompileDirectiveMetadata>();

View File

@ -628,10 +628,6 @@ class BoundElementOrDirectiveProperty {
public sourceInfo: string) {}
}
class ParseError {
constructor(public message: string, public sourceInfo: string) {}
}
export function splitClasses(classAttrValue: string): string[] {
return StringWrapper.split(classAttrValue.trim(), /\s+/g);
}

View File

@ -322,15 +322,6 @@ function moveNodesAfterSibling(sibling, nodes) {
}
}
function moveChildNodes(source: Node, target: Node) {
var currChild = DOM.firstChild(source);
while (isPresent(currChild)) {
var nextChild = DOM.nextSibling(currChild);
DOM.appendChild(target, currChild);
currChild = nextChild;
}
}
function decoratePreventDefault(eventHandler: Function): Function {
return (event) => {
var allowDefaultBehavior = eventHandler(event);

View File

@ -252,9 +252,3 @@ class Component<N> {
[];
}
}
function addAll(source: any[], target: any[]) {
for (var i = 0; i < source.length; i++) {
target.push(source[i]);
}
}