Skip to content

Commit 11e1d13

Browse files
committed
[ConstraintSystem] NFC: remove obsolete transferExprTypes
1 parent d324969 commit 11e1d13

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

lib/Sema/ConstraintSystem.h

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,30 +1336,6 @@ class ConstraintSystem {
13361336
bool walkToDeclPre(Decl *decl) override { return false; }
13371337
};
13381338

1339-
class TransferExprTypes : public ASTWalker {
1340-
ConstraintSystem &toCS;
1341-
ConstraintSystem &fromCS;
1342-
1343-
public:
1344-
TransferExprTypes(ConstraintSystem &toCS, ConstraintSystem &fromCS)
1345-
: toCS(toCS), fromCS(fromCS) {}
1346-
1347-
Expr *walkToExprPost(Expr *expr) override {
1348-
if (fromCS.hasType(expr))
1349-
toCS.setType(expr, fromCS.getType(expr));
1350-
1351-
return expr;
1352-
}
1353-
1354-
/// \brief Ignore statements.
1355-
std::pair<bool, Stmt *> walkToStmtPre(Stmt *stmt) override {
1356-
return { false, stmt };
1357-
}
1358-
1359-
/// \brief Ignore declarations.
1360-
bool walkToDeclPre(Decl *decl) override { return false; }
1361-
};
1362-
13631339
public:
13641340

13651341
void setExprTypes(Expr *expr) {
@@ -1385,10 +1361,6 @@ class ConstraintSystem {
13851361
expr->walk(CacheExprTypes(expr, *this, excludeRoot));
13861362
}
13871363

1388-
void transferExprTypes(ConstraintSystem *oldCS, Expr *expr) {
1389-
expr->walk(TransferExprTypes(*this, *oldCS));
1390-
}
1391-
13921364
/// \brief The current solver state.
13931365
///
13941366
/// This will be non-null when we're actively solving the constraint

0 commit comments

Comments
 (0)