@@ -540,8 +540,6 @@ makeEnumRawValueConstructor(ClangImporter::Implementation &Impl,
540
540
/* GenericParams=*/ nullptr , enumDecl);
541
541
ctorDecl->setImplicit ();
542
542
ctorDecl->setAccess (AccessLevel::Public);
543
-
544
- (void )ctorDecl->getInterfaceType ();
545
543
ctorDecl->setBodySynthesizer (synthesizeEnumRawValueConstructorBody, enumDecl);
546
544
return ctorDecl;
547
545
}
@@ -617,8 +615,6 @@ static void makeEnumRawValueGetter(ClangImporter::Implementation &Impl,
617
615
getterDecl->setIsDynamic (false );
618
616
getterDecl->setIsTransparent (false );
619
617
620
- (void )getterDecl->getInterfaceType ();
621
-
622
618
getterDecl->setAccess (AccessLevel::Public);
623
619
getterDecl->setBodySynthesizer (synthesizeEnumRawValueGetterBody, enumDecl);
624
620
makeComputed (rawValueDecl, getterDecl, nullptr );
@@ -698,8 +694,6 @@ static AccessorDecl *makeStructRawValueGetter(
698
694
getterDecl->setIsDynamic (false );
699
695
getterDecl->setIsTransparent (false );
700
696
701
- (void )getterDecl->getInterfaceType ();
702
-
703
697
getterDecl->setAccess (AccessLevel::Public);
704
698
getterDecl->setBodySynthesizer (synthesizeStructRawValueGetterBody, storedVar);
705
699
return getterDecl;
@@ -729,8 +723,6 @@ static AccessorDecl *makeFieldGetterDecl(ClangImporter::Implementation &Impl,
729
723
getterDecl->setIsObjC (false );
730
724
getterDecl->setIsDynamic (false );
731
725
732
- (void )getterDecl->getInterfaceType ();
733
-
734
726
return getterDecl;
735
727
}
736
728
@@ -765,8 +757,6 @@ static AccessorDecl *makeFieldSetterDecl(ClangImporter::Implementation &Impl,
765
757
setterDecl->setSelfAccessKind (SelfAccessKind::Mutating);
766
758
setterDecl->setAccess (AccessLevel::Public);
767
759
768
- (void )setterDecl->getInterfaceType ();
769
-
770
760
return setterDecl;
771
761
}
772
762
@@ -1308,9 +1298,6 @@ createDefaultConstructor(ClangImporter::Implementation &Impl,
1308
1298
/* Throws=*/ false , /* ThrowsLoc=*/ SourceLoc (), emptyPL,
1309
1299
/* GenericParams=*/ nullptr , structDecl);
1310
1300
1311
- // Set the constructor's type.
1312
- (void )constructor->getInterfaceType ();
1313
-
1314
1301
constructor->setAccess (AccessLevel::Public);
1315
1302
1316
1303
// Mark the constructor transparent so that we inline it away completely.
@@ -1437,9 +1424,6 @@ createValueConstructor(ClangImporter::Implementation &Impl,
1437
1424
/* Throws=*/ false , /* ThrowsLoc=*/ SourceLoc (), paramList,
1438
1425
/* GenericParams=*/ nullptr , structDecl);
1439
1426
1440
- // Set the constructor's type.
1441
- (void )constructor->getInterfaceType ();
1442
-
1443
1427
constructor->setAccess (AccessLevel::Public);
1444
1428
1445
1429
// Make the constructor transparent so we inline it away completely.
@@ -1714,8 +1698,6 @@ buildSubscriptGetterDecl(ClangImporter::Implementation &Impl,
1714
1698
TypeLoc::withoutLoc (elementTy), dc,
1715
1699
getter->getClangNode ());
1716
1700
1717
- (void )thunk->getInterfaceType ();
1718
-
1719
1701
thunk->setAccess (getOverridableAccessLevel (dc));
1720
1702
1721
1703
if (auto objcAttr = getter->getAttrs ().getAttribute <ObjCAttr>())
@@ -1767,7 +1749,6 @@ buildSubscriptSetterDecl(ClangImporter::Implementation &Impl,
1767
1749
valueIndicesPL,
1768
1750
TypeLoc::withoutLoc (TupleType::getEmpty (C)), dc,
1769
1751
setter->getClangNode ());
1770
- (void )thunk->getInterfaceType ();
1771
1752
1772
1753
thunk->setAccess (getOverridableAccessLevel (dc));
1773
1754
@@ -1952,7 +1933,6 @@ static bool addErrorDomain(NominalTypeDecl *swiftDecl,
1952
1933
/* GenericParams=*/ nullptr ,
1953
1934
params,
1954
1935
TypeLoc::withoutLoc (stringTy), swiftDecl);
1955
- (void )getterDecl->getInterfaceType ();
1956
1936
getterDecl->setIsObjC (false );
1957
1937
getterDecl->setIsDynamic (false );
1958
1938
getterDecl->setIsTransparent (false );
@@ -3733,7 +3713,6 @@ namespace {
3733
3713
3734
3714
result->setIsObjC (false );
3735
3715
result->setIsDynamic (false );
3736
- (void )result->getInterfaceType ();
3737
3716
3738
3717
Impl.recordImplicitUnwrapForDecl (result,
3739
3718
importedType.isImplicitlyUnwrapped ());
@@ -4316,9 +4295,6 @@ namespace {
4316
4295
if (forceClassMethod)
4317
4296
result->setImplicit ();
4318
4297
4319
- // Compute the interface type.
4320
- (void )result->getInterfaceType ();
4321
-
4322
4298
Impl.recordImplicitUnwrapForDecl (result, isIUO);
4323
4299
4324
4300
// Mark this method @objc.
@@ -5855,8 +5831,6 @@ Decl *SwiftDeclConverter::importGlobalAsInitializer(
5855
5831
std::move (initKind));
5856
5832
result->setImportAsStaticMember ();
5857
5833
5858
- // Set the constructor's type.
5859
- (void )result->getInterfaceType ();
5860
5834
Impl.recordImplicitUnwrapForDecl (result,
5861
5835
importedType.isImplicitlyUnwrapped ());
5862
5836
result->setOverriddenDecls ({ });
@@ -6335,9 +6309,6 @@ ConstructorDecl *SwiftDeclConverter::importConstructor(
6335
6309
6336
6310
addObjCAttribute (result, selector);
6337
6311
6338
- // Calculate the function type of the result.
6339
- (void )result->getInterfaceType ();
6340
-
6341
6312
Impl.recordImplicitUnwrapForDecl (result,
6342
6313
importedType.isImplicitlyUnwrapped ());
6343
6314
@@ -8378,7 +8349,6 @@ ClangImporter::Implementation::createConstant(Identifier name, DeclContext *dc,
8378
8349
params,
8379
8350
TypeLoc::withoutLoc (type), dc);
8380
8351
func->setStatic (isStatic);
8381
- (void )func->getInterfaceType ();
8382
8352
func->setAccess (getOverridableAccessLevel (dc));
8383
8353
func->setIsObjC (false );
8384
8354
func->setIsDynamic (false );
0 commit comments