refactor(ivy): remove unused ɵɵtextBinding instruction (#32345)
PR Close #32345
This commit is contained in:

committed by
Misko Hevery

parent
cc288aec3d
commit
5635505f2e
@ -148,7 +148,6 @@ export {
|
||||
ɵɵelementHostAttrs,
|
||||
|
||||
ɵɵselect,
|
||||
ɵɵtextBinding,
|
||||
ɵɵtemplate,
|
||||
ɵɵembeddedViewEnd,
|
||||
store as ɵstore,
|
||||
|
@ -30,7 +30,7 @@ import {DirectiveDef} from '../interfaces/definition';
|
||||
* }
|
||||
* if (fs & RenderFlags.Update) {
|
||||
* ɵɵselect(0);
|
||||
* ɵɵtextBinding(ctx.greeter.greet());
|
||||
* ɵɵtextInterpolate(ctx.greeter.greet());
|
||||
* }
|
||||
* },
|
||||
* features: [ProvidersFeature([GreeterDE])]
|
||||
|
@ -117,7 +117,6 @@ export {
|
||||
ɵɵtemplate,
|
||||
|
||||
ɵɵtext,
|
||||
ɵɵtextBinding,
|
||||
ɵɵtextInterpolate,
|
||||
ɵɵtextInterpolate1,
|
||||
ɵɵtextInterpolate2,
|
||||
|
@ -9,12 +9,8 @@ import {assertDataInRange, assertEqual} from '../../util/assert';
|
||||
import {TNodeType} from '../interfaces/node';
|
||||
import {BINDING_INDEX, HEADER_OFFSET, RENDERER, TVIEW, T_HOST} from '../interfaces/view';
|
||||
import {appendChild, createTextNode} from '../node_manipulation';
|
||||
import {getLView, getSelectedIndex, setIsNotParent} from '../state';
|
||||
import {NO_CHANGE} from '../tokens';
|
||||
import {renderStringify} from '../util/misc_utils';
|
||||
|
||||
import {bind} from './property';
|
||||
import {getOrCreateTNode, textBindingInternal} from './shared';
|
||||
import {getLView, setIsNotParent} from '../state';
|
||||
import {getOrCreateTNode} from './shared';
|
||||
|
||||
|
||||
|
||||
@ -39,20 +35,3 @@ export function ɵɵtext(index: number, value: string = ''): void {
|
||||
setIsNotParent();
|
||||
appendChild(textNative, tNode, lView);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create text node with binding
|
||||
* Bindings should be handled externally with the proper interpolation(1-8) method
|
||||
*
|
||||
* @param value Stringified value to write.
|
||||
*
|
||||
* @codeGenApi
|
||||
*/
|
||||
export function ɵɵtextBinding<T>(value: T | NO_CHANGE): void {
|
||||
const lView = getLView();
|
||||
const index = getSelectedIndex();
|
||||
const bound = bind(lView, value);
|
||||
if (bound !== NO_CHANGE) {
|
||||
textBindingInternal(lView, index, renderStringify(bound));
|
||||
}
|
||||
}
|
||||
|
@ -134,7 +134,6 @@ export const angularCoreEnv: {[name: string]: Function} =
|
||||
'ɵɵselect': r3.ɵɵselect,
|
||||
'ɵɵtemplate': r3.ɵɵtemplate,
|
||||
'ɵɵtext': r3.ɵɵtext,
|
||||
'ɵɵtextBinding': r3.ɵɵtextBinding,
|
||||
'ɵɵtextInterpolate': r3.ɵɵtextInterpolate,
|
||||
'ɵɵtextInterpolate1': r3.ɵɵtextInterpolate1,
|
||||
'ɵɵtextInterpolate2': r3.ɵɵtextInterpolate2,
|
||||
|
Reference in New Issue
Block a user