Skip to content

Commit 1d89f9b

Browse files
committed
AST: Remove unused variable
1 parent 11ef6e5 commit 1d89f9b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/AST/NameLookup.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,8 +751,6 @@ extInfoRemovingThrownError(AnyFunctionType *fnType) {
751751

752752
/// Remove the thrown error type.
753753
static CanType removeThrownError(Type type) {
754-
ASTContext &ctx = type->getASTContext();
755-
756754
return type.transformRec([](TypeBase *type) -> std::optional<Type> {
757755
if (auto funcTy = dyn_cast<FunctionType>(type)) {
758756
if (auto newExtInfo = extInfoRemovingThrownError(funcTy)) {

0 commit comments

Comments
 (0)