Skip to content

Commit 4d5c676

Browse files
committed
[ConstraintSystem] NFC: Remove obsolete code related to fixes from Solution
1 parent af65c0e commit 4d5c676

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

lib/Sema/ConstraintSystem.h

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -837,21 +837,9 @@ class Solution {
837837
llvm::DenseMap<std::pair<CanType, CanType>, ConversionRestrictionKind>
838838
ConstraintRestrictions;
839839

840-
using ConstraintFixVector = llvm::SmallVector<ConstraintFix *, 4>;
841840
/// The list of fixes that need to be applied to the initial expression
842841
/// to make the solution work.
843-
ConstraintFixVector Fixes;
844-
845-
using AggregatedFixesMap = llvm::SmallMapVector<ConstraintLocator *,
846-
llvm::SmallMapVector<FixKind, ConstraintFixVector, 4>, 4>;
847-
848-
AggregatedFixesMap getAggregatedFixes() const {
849-
AggregatedFixesMap aggregatedFixes;
850-
for (auto *fix: Fixes) {
851-
aggregatedFixes[fix->getLocator()][fix->getKind()].push_back(fix);
852-
}
853-
return aggregatedFixes;
854-
}
842+
llvm::SmallVector<ConstraintFix *, 4> Fixes;
855843

856844
/// The set of disjunction choices used to arrive at this solution,
857845
/// which informs constraint application.

0 commit comments

Comments
 (0)