File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -75,13 +75,6 @@ class AnyFunctionRef {
75
75
return TheFunction.get <AbstractClosureExpr *>()->getCaptureInfo ();
76
76
}
77
77
78
-
79
- bool hasType () const {
80
- if (auto *AFD = TheFunction.dyn_cast <AbstractFunctionDecl *>())
81
- return AFD->hasInterfaceType ();
82
- return !TheFunction.get <AbstractClosureExpr *>()->getType ().isNull ();
83
- }
84
-
85
78
ParameterList *getParameters () const {
86
79
if (auto *AFD = TheFunction.dyn_cast <AbstractFunctionDecl *>())
87
80
return AFD->getParameters ();
@@ -174,20 +167,8 @@ class AnyFunctionRef {
174
167
return TheFunction.dyn_cast <AbstractClosureExpr*>();
175
168
}
176
169
177
- // / Return true if this closure is passed as an argument to a function and is
178
- // / known not to escape from that function. In this case, captures can be
179
- // / more efficient.
180
- bool isKnownNoEscape () const {
181
- if (hasType () && !getType ()->hasError ())
182
- return getType ()->castTo <AnyFunctionType>()->isNoEscape ();
183
- return false ;
184
- }
185
-
186
170
// / Whether this function is @Sendable.
187
171
bool isSendable () const {
188
- if (!hasType ())
189
- return false ;
190
-
191
172
if (auto *fnType = getType ()->getAs <AnyFunctionType>())
192
173
return fnType->isSendable ();
193
174
You can’t perform that action at this time.
0 commit comments