@@ -1071,8 +1071,6 @@ bool swift::isValidDynamicCallableMethod(FuncDecl *decl, DeclContext *DC,
1071
1071
// `ExpressibleByStringLiteral`.
1072
1072
// `D.Value` and the return type can be arbitrary.
1073
1073
1074
- // FIXME(InterfaceTypeRequest): Remove this.
1075
- (void )decl->getInterfaceType ();
1076
1074
auto paramList = decl->getParameters ();
1077
1075
if (paramList->size () != 1 || paramList->get (0 )->isVariadic ()) return false ;
1078
1076
auto argType = paramList->get (0 )->getType ();
@@ -1242,8 +1240,6 @@ visitDynamicMemberLookupAttr(DynamicMemberLookupAttr *attr) {
1242
1240
auto oneCandidate = candidates.front ().getValueDecl ();
1243
1241
candidates.filter ([&](LookupResultEntry entry, bool isOuter) -> bool {
1244
1242
auto cand = cast<SubscriptDecl>(entry.getValueDecl ());
1245
- // FIXME(InterfaceTypeRequest): Remove this.
1246
- (void )cand->getInterfaceType ();
1247
1243
return isValidDynamicMemberLookupSubscript (cand, decl);
1248
1244
});
1249
1245
@@ -1266,8 +1262,6 @@ visitDynamicMemberLookupAttr(DynamicMemberLookupAttr *attr) {
1266
1262
// Validate the candidates while ignoring the label.
1267
1263
newCandidates.filter ([&](const LookupResultEntry entry, bool isOuter) {
1268
1264
auto cand = cast<SubscriptDecl>(entry.getValueDecl ());
1269
- // FIXME(InterfaceTypeRequest): Remove this.
1270
- (void )cand->getInterfaceType ();
1271
1265
return isValidDynamicMemberLookupSubscript (cand, decl,
1272
1266
/* ignoreLabel*/ true );
1273
1267
});
@@ -2111,9 +2105,6 @@ static Type getDynamicComparisonType(ValueDecl *value) {
2111
2105
}
2112
2106
2113
2107
auto interfaceType = value->getInterfaceType ();
2114
- if (!interfaceType)
2115
- return ErrorType::get (value->getASTContext ());
2116
-
2117
2108
return interfaceType->removeArgumentLabels (numArgumentLabels);
2118
2109
}
2119
2110
@@ -2177,8 +2168,6 @@ static FuncDecl *findReplacedAccessor(DeclName replacedVarName,
2177
2168
2178
2169
assert (!isa<FuncDecl>(results[0 ]));
2179
2170
2180
- // FIXME(InterfaceTypeRequest): Remove this.
2181
- (void )results[0 ]->getInterfaceType ();
2182
2171
auto *origStorage = cast<AbstractStorageDecl>(results[0 ]);
2183
2172
if (!origStorage->isDynamic ()) {
2184
2173
Diags.diagnose (attr->getLocation (),
@@ -2194,8 +2183,6 @@ static FuncDecl *findReplacedAccessor(DeclName replacedVarName,
2194
2183
if (!origAccessor)
2195
2184
return nullptr ;
2196
2185
2197
- // FIXME(InterfaceTypeRequest): Remove this.
2198
- (void )origAccessor->getInterfaceType ();
2199
2186
if (origAccessor->isImplicit () &&
2200
2187
!(origStorage->getReadImpl () == ReadImplKind::Stored &&
2201
2188
origStorage->getWriteImpl () == WriteImplKind::Stored)) {
@@ -2348,8 +2335,6 @@ void AttributeChecker::visitDynamicReplacementAttr(DynamicReplacementAttr *attr)
2348
2335
if (attr->isInvalid ())
2349
2336
return ;
2350
2337
2351
- // FIXME(InterfaceTypeRequest): Remove this.
2352
- (void )accessor->getInterfaceType ();
2353
2338
auto *orig = findReplacedAccessor (attr->getReplacedFunctionName (),
2354
2339
accessor, attr, Ctx);
2355
2340
if (!orig)
0 commit comments