@@ -264,9 +264,6 @@ Solution ConstraintSystem::finalize() {
264264 for (const auto &packEnv : PackEnvironments)
265265 solution.PackEnvironments .insert (packEnv);
266266
267- for (const auto &packEltGenericEnv : PackElementGenericEnvironments)
268- solution.PackElementGenericEnvironments .push_back (packEltGenericEnv);
269-
270267 for (const auto &synthesized : SynthesizedConformances) {
271268 solution.SynthesizedConformances .insert (synthesized);
272269 }
@@ -349,12 +346,6 @@ void ConstraintSystem::applySolution(const Solution &solution) {
349346 addPackEnvironment (packEnvironment.first , packEnvironment.second );
350347 }
351348
352- // Register the solutions's pack element generic environments.
353- for (auto &packElementGenericEnvironment :
354- solution.PackElementGenericEnvironments ) {
355- PackElementGenericEnvironments.push_back (packElementGenericEnvironment);
356- }
357-
358349 // Register the defaulted type variables.
359350 DefaultedConstraints.insert (solution.DefaultedConstraints .begin (),
360351 solution.DefaultedConstraints .end ());
@@ -672,7 +663,6 @@ ConstraintSystem::SolverScope::SolverScope(ConstraintSystem &cs)
672663
673664 numTypeVariables = cs.TypeVariables .size ();
674665 numFixes = cs.Fixes .size ();
675- numPackElementGenericEnvironments = cs.PackElementGenericEnvironments .size ();
676666 numDefaultedConstraints = cs.DefaultedConstraints .size ();
677667 numAddedNodeTypes = cs.addedNodeTypes .size ();
678668 numAddedKeyPathComponentTypes = cs.addedKeyPathComponentTypes .size ();
@@ -729,10 +719,6 @@ ConstraintSystem::SolverScope::~SolverScope() {
729719 // constraints introduced by the current scope.
730720 cs.solverState ->rollback (this );
731721
732- // Remove any pack element generic environments.
733- truncate (cs.PackElementGenericEnvironments ,
734- numPackElementGenericEnvironments);
735-
736722 // Remove any defaulted type variables.
737723 truncate (cs.DefaultedConstraints , numDefaultedConstraints);
738724
0 commit comments