Skip to content

Commit 00ff491

Browse files
committed
[ConstraintSystem] Remove an unused isPreconcurrency function.
1 parent 2fb14ce commit 00ff491

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2938,23 +2938,6 @@ bool ConstraintSystem::hasPreconcurrencyCallee(
29382938
return calleeOverload->choice.getDecl()->preconcurrency();
29392939
}
29402940

2941-
/// Determines whether a DeclContext is preconcurrency, using information
2942-
/// tracked by the solver to aid in answering that.
2943-
static bool isPreconcurrency(ConstraintSystem &cs, DeclContext *dc) {
2944-
if (auto *decl = dc->getAsDecl())
2945-
return decl->preconcurrency();
2946-
2947-
if (auto *ce = dyn_cast<ClosureExpr>(dc)) {
2948-
return ClosureIsolatedByPreconcurrency{cs}(ce);
2949-
}
2950-
2951-
if (auto *autoClos = dyn_cast<AutoClosureExpr>(dc)) {
2952-
return isPreconcurrency(cs, autoClos->getParent());
2953-
}
2954-
2955-
llvm_unreachable("unhandled DeclContext kind in isPreconcurrency");
2956-
}
2957-
29582941
ConstraintSystem::TypeMatchResult
29592942
ConstraintSystem::matchFunctionTypes(FunctionType *func1, FunctionType *func2,
29602943
ConstraintKind kind, TypeMatchOptions flags,

0 commit comments

Comments
 (0)