Skip to content

Commit 11b30a2

Browse files
committed
[Constraint solver] Remove some dead instance variables.
1 parent 3f9d797 commit 11b30a2

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

lib/Sema/CSGen.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,7 +1727,6 @@ namespace {
17271727
if (arrayElementTy->isTypeVariableOrMember()) {
17281728
CS.addConstraint(ConstraintKind::Defaultable, arrayElementTy,
17291729
tc.Context.TheAnyType, locator);
1730-
CS.ArrayElementTypes[expr] = arrayElementTy;
17311730
}
17321731

17331732
return arrayTy;
@@ -1871,11 +1870,6 @@ namespace {
18711870
tc.Context.TheAnyType, locator);
18721871
}
18731872

1874-
// Record key/value type variables.
1875-
if (dictionaryKeyTy->isTypeVariableOrMember() ||
1876-
dictionaryValueTy->isTypeVariableOrMember())
1877-
CS.DictionaryElementTypes[expr] = {dictionaryKeyTy, dictionaryValueTy};
1878-
18791873
return dictionaryTy;
18801874
}
18811875

lib/Sema/ConstraintSystem.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -998,15 +998,6 @@ class ConstraintSystem {
998998
/// The locators of \c Defaultable constraints whose defaults were used.
999999
SmallVector<ConstraintLocator *, 8> DefaultedConstraints;
10001000

1001-
/// The types used to describe the element type of the given array
1002-
/// literal.
1003-
llvm::SmallDenseMap<ArrayExpr *, Type> ArrayElementTypes;
1004-
1005-
/// The types used to describe the key and value types of the given
1006-
/// dictionary literal.
1007-
llvm::SmallDenseMap<DictionaryExpr *, std::pair<Type, Type>>
1008-
DictionaryElementTypes;
1009-
10101001
private:
10111002
/// \brief Describe the candidate expression for partial solving.
10121003
/// This class used by shrink & solve methods which apply

0 commit comments

Comments
 (0)