Skip to content

Commit ce62a2e

Browse files
committed
AST: Remove AnyFunctionRef::setCaptureInfo()
1 parent 83bb9d0 commit ce62a2e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

include/swift/AST/AnyFunctionRef.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,6 @@ class AnyFunctionRef {
7575
return TheFunction.get<AbstractClosureExpr *>()->getCaptureInfo();
7676
}
7777

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-
}
8578

8679
bool hasType() const {
8780
if (auto *AFD = TheFunction.dyn_cast<AbstractFunctionDecl *>())

0 commit comments

Comments
 (0)