Skip to content

Commit 02bd5f8

Browse files
crisbetothePunderWoman
authored andcommitted
refactor(core): remove attribute interpolation instructions (angular#61557)
The attribute interpolation instructions aren't used anymore so we can remove them. PR Close angular#61557
1 parent 32ae421 commit 02bd5f8

7 files changed

Lines changed: 0 additions & 775 deletions

File tree

packages/compiler/src/render3/r3_identifiers.ts

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -45,43 +45,6 @@ export class Identifiers {
4545

4646
static attribute: o.ExternalReference = {name: 'ɵɵattribute', moduleName: CORE};
4747

48-
static attributeInterpolate1: o.ExternalReference = {
49-
name: 'ɵɵattributeInterpolate1',
50-
moduleName: CORE,
51-
};
52-
static attributeInterpolate2: o.ExternalReference = {
53-
name: 'ɵɵattributeInterpolate2',
54-
moduleName: CORE,
55-
};
56-
static attributeInterpolate3: o.ExternalReference = {
57-
name: 'ɵɵattributeInterpolate3',
58-
moduleName: CORE,
59-
};
60-
static attributeInterpolate4: o.ExternalReference = {
61-
name: 'ɵɵattributeInterpolate4',
62-
moduleName: CORE,
63-
};
64-
static attributeInterpolate5: o.ExternalReference = {
65-
name: 'ɵɵattributeInterpolate5',
66-
moduleName: CORE,
67-
};
68-
static attributeInterpolate6: o.ExternalReference = {
69-
name: 'ɵɵattributeInterpolate6',
70-
moduleName: CORE,
71-
};
72-
static attributeInterpolate7: o.ExternalReference = {
73-
name: 'ɵɵattributeInterpolate7',
74-
moduleName: CORE,
75-
};
76-
static attributeInterpolate8: o.ExternalReference = {
77-
name: 'ɵɵattributeInterpolate8',
78-
moduleName: CORE,
79-
};
80-
static attributeInterpolateV: o.ExternalReference = {
81-
name: 'ɵɵattributeInterpolateV',
82-
moduleName: CORE,
83-
};
84-
8548
static classProp: o.ExternalReference = {name: 'ɵɵclassProp', moduleName: CORE};
8649

8750
static elementContainerStart: o.ExternalReference = {

packages/compiler/src/template/pipeline/src/instruction.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -935,30 +935,6 @@ const STYLE_PROP_INTERPOLATE_CONFIG: VariadicInstructionConfig = {
935935
},
936936
};
937937

938-
/**
939-
* `InterpolationConfig` for the `attributeInterpolate` instruction.
940-
*/
941-
const ATTRIBUTE_INTERPOLATE_CONFIG: VariadicInstructionConfig = {
942-
constant: [
943-
Identifiers.attribute,
944-
Identifiers.attributeInterpolate1,
945-
Identifiers.attributeInterpolate2,
946-
Identifiers.attributeInterpolate3,
947-
Identifiers.attributeInterpolate4,
948-
Identifiers.attributeInterpolate5,
949-
Identifiers.attributeInterpolate6,
950-
Identifiers.attributeInterpolate7,
951-
Identifiers.attributeInterpolate8,
952-
],
953-
variable: Identifiers.attributeInterpolateV,
954-
mapping: (n) => {
955-
if (n % 2 === 0) {
956-
throw new Error(`Expected odd number of arguments`);
957-
}
958-
return (n - 1) / 2;
959-
},
960-
};
961-
962938
/**
963939
* `InterpolationConfig` for the `styleMapInterpolate` instruction.
964940
*/

packages/core/src/core_render3_private_export.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,6 @@ export {
7373
DirectiveDebugMetadata as ɵDirectiveDebugMetadata,
7474
ɵɵadvance,
7575
ɵɵattribute,
76-
ɵɵattributeInterpolate1,
77-
ɵɵattributeInterpolate2,
78-
ɵɵattributeInterpolate3,
79-
ɵɵattributeInterpolate4,
80-
ɵɵattributeInterpolate5,
81-
ɵɵattributeInterpolate6,
82-
ɵɵattributeInterpolate7,
83-
ɵɵattributeInterpolate8,
84-
ɵɵattributeInterpolateV,
8576
ɵɵinterpolate,
8677
ɵɵinterpolate1,
8778
ɵɵinterpolate2,

packages/core/src/render3/index.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,6 @@ export {getLocaleId, setLocaleId} from './i18n/i18n_locale_id';
5454
export {
5555
ɵɵadvance,
5656
ɵɵattribute,
57-
ɵɵattributeInterpolate1,
58-
ɵɵattributeInterpolate2,
59-
ɵɵattributeInterpolate3,
60-
ɵɵattributeInterpolate4,
61-
ɵɵattributeInterpolate5,
62-
ɵɵattributeInterpolate6,
63-
ɵɵattributeInterpolate7,
64-
ɵɵattributeInterpolate8,
65-
ɵɵattributeInterpolateV,
6657
ɵɵinterpolate,
6758
ɵɵinterpolate1,
6859
ɵɵinterpolate2,

packages/core/src/render3/instructions/all.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
export * from '../../defer/instructions';
2929
export * from './advance';
3030
export * from './attribute';
31-
export * from './attribute_interpolation';
3231
export * from './change_detection';
3332
export * from './class_map_interpolation';
3433
export * from './component_instance';

0 commit comments

Comments
 (0)