Skip to content

Commit c532583

Browse files
committed
[TypeChecker] NFC: Delete rudimentary AutoClosureListener::isInDefaultArgContext()
1 parent 3ffda7e commit c532583

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/Sema/TypeCheckConstraints.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,12 +2092,6 @@ Type TypeChecker::typeCheckParameterDefault(Expr *&defaultValue,
20922092
cs.cacheExprTypes(closure);
20932093
return closure;
20942094
}
2095-
2096-
bool isInDefaultArgContext() const {
2097-
if (auto *init = dyn_cast<Initializer>(DC))
2098-
return init->getInitializerKind() == InitializerKind::DefaultArgument;
2099-
return false;
2100-
}
21012095
};
21022096

21032097
auto *fnType = paramType->castTo<FunctionType>();

0 commit comments

Comments
 (0)