@@ -4554,17 +4554,6 @@ static Type formExtensionInterfaceType(TypeChecker &tc, ExtensionDecl *ext,
4554
4554
return resultType;
4555
4555
}
4556
4556
4557
- // / Visit the given generic parameter lists from the outermost to the innermost,
4558
- // / calling the visitor function for each list.
4559
- static void visitOuterToInner (
4560
- GenericParamList *genericParams,
4561
- llvm::function_ref<void (GenericParamList *)> visitor) {
4562
- if (auto outerGenericParams = genericParams->getOuterParameters ())
4563
- visitOuterToInner (outerGenericParams, visitor);
4564
-
4565
- visitor (genericParams);
4566
- }
4567
-
4568
4557
// / Check the generic parameters of an extension, recursively handling all of
4569
4558
// / the parameter lists within the extension.
4570
4559
static std::pair<GenericEnvironment *, Type>
@@ -4578,12 +4567,6 @@ checkExtensionGenericParams(TypeChecker &tc, ExtensionDecl *ext, Type type,
4578
4567
formExtensionInterfaceType (tc, ext, type, genericParams,
4579
4568
mustInferRequirements);
4580
4569
4581
- // Prepare all of the generic parameter lists for generic signature
4582
- // validation.
4583
- visitOuterToInner (genericParams, [&](GenericParamList *gpList) {
4584
- tc.prepareGenericParamList (gpList, ext);
4585
- });
4586
-
4587
4570
// Local function used to infer requirements from the extended type.
4588
4571
auto inferExtendedTypeReqs = [&](GenericSignatureBuilder &builder) {
4589
4572
auto source =
0 commit comments