Skip to content

Commit 143b3c1

Browse files
committed
GSB: Remove some dead code
1 parent 5cec731 commit 143b3c1

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5266,18 +5266,6 @@ static void expandSameTypeConstraints(GenericSignatureBuilder &builder,
52665266
auto genericParams = builder.getGenericParams();
52675267
auto existingMembers = equivClass->members;
52685268
for (auto pa : existingMembers) {
5269-
// Make sure that there are only associated types that chain up to the
5270-
// parent.
5271-
bool foundNonAssociatedType = false;
5272-
for (auto currentPA = pa; auto parentPA = currentPA->getParent();
5273-
currentPA = parentPA){
5274-
if (!currentPA->getResolvedType()) {
5275-
foundNonAssociatedType = true;
5276-
break;
5277-
}
5278-
}
5279-
if (foundNonAssociatedType) continue;
5280-
52815269
auto dependentType = pa->getDependentType(genericParams);
52825270
for (const auto &conforms : equivClass->conformsTo) {
52835271
auto proto = conforms.first;

0 commit comments

Comments
 (0)