From ce62a2e93b51e5963b4a8b3d1796de2b2cb702aa Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Mon, 22 Apr 2024 15:51:18 -0400 Subject: [PATCH] AST: Remove AnyFunctionRef::setCaptureInfo() --- include/swift/AST/AnyFunctionRef.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/include/swift/AST/AnyFunctionRef.h b/include/swift/AST/AnyFunctionRef.h index ae31b67b5e1..41530937413 100644 --- a/include/swift/AST/AnyFunctionRef.h +++ b/include/swift/AST/AnyFunctionRef.h @@ -75,13 +75,6 @@ public: return TheFunction.get()->getCaptureInfo(); } - void setCaptureInfo(CaptureInfo captures) const { - if (auto *AFD = TheFunction.dyn_cast()) { - AFD->setCaptureInfo(captures); - return; - } - TheFunction.get()->setCaptureInfo(captures); - } bool hasType() const { if (auto *AFD = TheFunction.dyn_cast())