refactor(ivy): remove unused ɵɵtextBinding instruction (#32345)

PR Close #32345
This commit is contained in:
Pawel Kozlowski
2019-08-27 16:44:11 +02:00
committed by Misko Hevery
parent cc288aec3d
commit 5635505f2e
16 changed files with 40 additions and 69 deletions

View File

@ -128,8 +128,6 @@ export class Identifiers {
static text: o.ExternalReference = {name: 'ɵɵtext', moduleName: CORE};
static textBinding: o.ExternalReference = {name: 'ɵɵtextBinding', moduleName: CORE};
static enableBindings: o.ExternalReference = {name: 'ɵɵenableBindings', moduleName: CORE};
static disableBindings: o.ExternalReference = {name: 'ɵɵdisableBindings', moduleName: CORE};

View File

@ -968,8 +968,7 @@ export class TemplateDefinitionBuilder implements t.Visitor<void>, LocalResolver
nodeIndex, text.sourceSpan, getTextInterpolationExpression(value),
() => this.getUpdateInstructionArguments(value));
} else {
this.updateInstruction(
nodeIndex, text.sourceSpan, R3.textBinding, () => [this.convertPropertyBinding(value)]);
error('Text nodes should be interpolated and never bound directly.');
}
}