[CSGen] NFC: Remove obsolete ConstraintSystem::{get, set}FavoredType

This commit is contained in:
Pavel Yaskevich
2024-10-16 11:06:15 -07:00
parent 2fdd4b6c35
commit 8bd288447f
2 changed files with 0 additions and 23 deletions

View File

@@ -403,7 +403,6 @@ namespace {
Type fixedOutputType =
CS.getFixedTypeRecursive(outputTy, /*wantRValue=*/false);
if (!fixedOutputType->isTypeVariableOrMember()) {
CS.setFavoredType(anchor, fixedOutputType.getPointer());
outputTy = fixedOutputType;
}
@@ -807,11 +806,6 @@ namespace {
return eltType;
}
}
if (!knownType->hasPlaceholder()) {
// Set the favored type for this expression to the known type.
CS.setFavoredType(E, knownType.getPointer());
}
}
}
@@ -1290,9 +1284,6 @@ namespace {
CS.getASTContext());
}
if (auto favoredTy = CS.getFavoredType(expr->getSubExpr())) {
CS.setFavoredType(expr, favoredTy);
}
return CS.getType(expr->getSubExpr());
}
@@ -2567,7 +2558,6 @@ namespace {
Type fixedType =
CS.getFixedTypeRecursive(resultType, /*wantRvalue=*/true);
if (!fixedType->isTypeVariableOrMember()) {
CS.setFavoredType(expr, fixedType.getPointer());
resultType = fixedType;
}