Skip to content

Commit 2a626b4

Browse files
committed
[Constraint system] Remove some unused code. NFC
We don't do substitutions based on archetypes here any more.
1 parent 171f7d5 commit 2a626b4

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/Sema/ConstraintSystem.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -536,15 +536,6 @@ namespace {
536536
return type;
537537
}
538538

539-
// Replace archetypes with fresh type variables.
540-
if (auto archetype = type->getAs<ArchetypeType>()) {
541-
auto known = replacements.find(archetype->getCanonicalType());
542-
if (known != replacements.end())
543-
return known->second;
544-
545-
return archetype;
546-
}
547-
548539
// Replace a generic type parameter with its corresponding type variable.
549540
if (auto genericParam = type->getAs<GenericTypeParamType>()) {
550541
auto known = replacements.find(genericParam->getCanonicalType());

0 commit comments

Comments
 (0)