File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -1727,7 +1727,6 @@ namespace {
1727
1727
if (arrayElementTy->isTypeVariableOrMember ()) {
1728
1728
CS.addConstraint (ConstraintKind::Defaultable, arrayElementTy,
1729
1729
tc.Context .TheAnyType , locator);
1730
- CS.ArrayElementTypes [expr] = arrayElementTy;
1731
1730
}
1732
1731
1733
1732
return arrayTy;
@@ -1871,11 +1870,6 @@ namespace {
1871
1870
tc.Context .TheAnyType , locator);
1872
1871
}
1873
1872
1874
- // Record key/value type variables.
1875
- if (dictionaryKeyTy->isTypeVariableOrMember () ||
1876
- dictionaryValueTy->isTypeVariableOrMember ())
1877
- CS.DictionaryElementTypes [expr] = {dictionaryKeyTy, dictionaryValueTy};
1878
-
1879
1873
return dictionaryTy;
1880
1874
}
1881
1875
Original file line number Diff line number Diff line change @@ -998,15 +998,6 @@ class ConstraintSystem {
998
998
// / The locators of \c Defaultable constraints whose defaults were used.
999
999
SmallVector<ConstraintLocator *, 8 > DefaultedConstraints;
1000
1000
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
-
1010
1001
private:
1011
1002
// / \brief Describe the candidate expression for partial solving.
1012
1003
// / This class used by shrink & solve methods which apply
You can’t perform that action at this time.
0 commit comments