Skip to content

Commit d558168

Browse files
authored
Merge pull request #12254 from jckarter/unused-metadata-getGenericPattern
Runtime: Remove unused Metadata::getGenericPattern() method.
2 parents fa500da + 0f137aa commit d558168

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

include/swift/Runtime/Metadata.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -999,10 +999,6 @@ struct TargetMetadata {
999999
swift_runtime_unreachable("Unhandled MetadataKind in switch.");
10001000
}
10011001

1002-
/// Get the generic metadata pattern from which this generic type instance was
1003-
/// instantiated, or null if the type is not generic.
1004-
const TargetGenericMetadata<Runtime> *getGenericPattern() const;
1005-
10061002
/// Get the class object for this type if it has one, or return null if the
10071003
/// type is not a class (or not a class with a class object).
10081004
const TargetClassMetadata<Runtime> *getClassObject() const;

stdlib/public/runtime/Metadata.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2420,13 +2420,6 @@ swift::swift_getForeignTypeMetadata(ForeignTypeMetadata *nonUnique) {
24202420
/*** Other metadata routines ***********************************************/
24212421
/***************************************************************************/
24222422

2423-
template<> const GenericMetadata *
2424-
Metadata::getGenericPattern() const {
2425-
if (const auto *ntd = getNominalTypeDescriptor())
2426-
return ntd->getGenericMetadataPattern();
2427-
return nullptr;
2428-
}
2429-
24302423
template<> const ClassMetadata *
24312424
Metadata::getClassObject() const {
24322425
switch (getKind()) {

0 commit comments

Comments
 (0)