diff --git a/modules/angular2/src/change_detection/change_detection_jit_generator.es6 b/modules/angular2/src/change_detection/change_detection_jit_generator.es6 index 5866777a24..66404fc72f 100644 --- a/modules/angular2/src/change_detection/change_detection_jit_generator.es6 +++ b/modules/angular2/src/change_detection/change_detection_jit_generator.es6 @@ -216,17 +216,6 @@ function assignmentTemplate(field:string, value:string) { return `${field} = ${value};`; } -function invokeMethodTemplate(name:string, args:string, context:string, newValue:string) { - return ` -${TEMP_LOCAL} = ${UTIL}.findContext("${name}", ${context}); -if (${TEMP_LOCAL} instanceof ContextWithVariableBindings) { - ${newValue} = ${TEMP_LOCAL}.get('${name}').apply(null, [${args}]); -} else { - ${newValue} = ${context}.${name}(${args}); -} -`; -} - function localDefinitionsTemplate(names:List):string { return names.map((n) => `var ${n};`).join("\n"); }