@@ -1289,16 +1289,6 @@ struct TargetClassMetadata : public TargetHeapMetadata<Runtime> {
1289
1289
auto asWords = reinterpret_cast <const void * const *>(this );
1290
1290
return reinterpret_cast <const StoredPointer *>(asWords + offset);
1291
1291
}
1292
-
1293
- // / Get a pointer to the field type vector, if present, or null.
1294
- const FieldType *getFieldTypes () const {
1295
- assert (isTypeMetadata ());
1296
- auto *getter = getDescription ()->GetFieldTypes .get ();
1297
- if (!getter)
1298
- return nullptr ;
1299
-
1300
- return getter (this );
1301
- }
1302
1292
1303
1293
uint32_t getSizeInWords () const {
1304
1294
assert (isTypeMetadata ());
@@ -1571,15 +1561,6 @@ struct TargetStructMetadata : public TargetValueMetadata<Runtime> {
1571
1561
auto asWords = reinterpret_cast <const void * const *>(this );
1572
1562
return reinterpret_cast <const StoredPointer *>(asWords + offset);
1573
1563
}
1574
-
1575
- // / Get a pointer to the field type vector, if present, or null.
1576
- const FieldType *getFieldTypes () const {
1577
- auto *getter = getDescription ()->GetFieldTypes .get ();
1578
- if (!getter)
1579
- return nullptr ;
1580
-
1581
- return getter (this );
1582
- }
1583
1564
1584
1565
static bool classof (const TargetMetadata<Runtime> *metadata) {
1585
1566
return metadata->getKind () == MetadataKind::Struct;
@@ -3177,12 +3158,6 @@ class TargetClassDescriptor final
3177
3158
// / length and order is consistent with that of the field offset vector.
3178
3159
RelativeDirectPointer<const char , /* nullable*/ true > FieldNames;
3179
3160
3180
- // / The field type vector accessor. Returns a pointer to an array of
3181
- // / type metadata references whose order is consistent with that of the
3182
- // / field offset vector.
3183
- RelativeDirectPointer<const FieldType *
3184
- (const TargetMetadata<Runtime> *)> GetFieldTypes;
3185
-
3186
3161
// / True if metadata records for this type have a field offset vector for
3187
3162
// / its stored properties.
3188
3163
bool hasFieldOffsetVector () const { return FieldOffsetVectorOffset != 0 ; }
@@ -3286,12 +3261,6 @@ class TargetStructDescriptor final
3286
3261
// / The field names. A doubly-null-terminated list of strings, whose
3287
3262
// / length and order is consistent with that of the field offset vector.
3288
3263
RelativeDirectPointer<const char , /* nullable*/ true > FieldNames;
3289
-
3290
- // / The field type vector accessor. Returns a pointer to an array of
3291
- // / type metadata references whose order is consistent with that of the
3292
- // / field offset vector.
3293
- RelativeDirectPointer<const FieldType *
3294
- (const TargetMetadata<Runtime> *)> GetFieldTypes;
3295
3264
3296
3265
// / True if metadata records for this type have a field offset vector for
3297
3266
// / its stored properties.
@@ -3340,13 +3309,6 @@ class TargetEnumDescriptor final
3340
3309
// / tag order, non-empty cases first, followed by empty cases.
3341
3310
RelativeDirectPointer<const char , /* nullable*/ true > CaseNames;
3342
3311
3343
- // / The field type vector accessor. Returns a pointer to an array of
3344
- // / type metadata references whose order is consistent with that of the
3345
- // / CaseNames. Only types for payload cases are provided.
3346
- RelativeDirectPointer<
3347
- const FieldType * (const TargetMetadata<Runtime> *)>
3348
- GetCaseTypes;
3349
-
3350
3312
uint32_t getNumPayloadCases () const {
3351
3313
return NumPayloadCasesAndPayloadSizeOffset & 0x00FFFFFFU ;
3352
3314
}
0 commit comments