We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83bb9d0 commit ce62a2eCopy full SHA for ce62a2e
include/swift/AST/AnyFunctionRef.h
@@ -75,13 +75,6 @@ class AnyFunctionRef {
75
return TheFunction.get<AbstractClosureExpr *>()->getCaptureInfo();
76
}
77
78
- void setCaptureInfo(CaptureInfo captures) const {
79
- if (auto *AFD = TheFunction.dyn_cast<AbstractFunctionDecl *>()) {
80
- AFD->setCaptureInfo(captures);
81
- return;
82
- }
83
- TheFunction.get<AbstractClosureExpr *>()->setCaptureInfo(captures);
84
85
86
bool hasType() const {
87
if (auto *AFD = TheFunction.dyn_cast<AbstractFunctionDecl *>())
0 commit comments