Skip to content

Commit 507f761

Browse files
committed
AST: Remove AbstractFunctionDecl::hasDynamicSelfResult()
1 parent d6fb460 commit 507f761

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

include/swift/AST/Decl.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8321,10 +8321,6 @@ class AbstractFunctionDecl : public GenericContext, public ValueDecl {
83218321
/// Asserts if not in type context.
83228322
Type getMethodInterfaceType() const;
83238323

8324-
/// Tests if this is a function returning a DynamicSelfType, or a
8325-
/// constructor.
8326-
bool hasDynamicSelfResult() const;
8327-
83288324
/// The async function marked as the alternative to this function, if any.
83298325
AbstractFunctionDecl *getAsyncAlternative() const;
83308326

lib/AST/Decl.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9925,12 +9925,6 @@ Type AbstractFunctionDecl::getMethodInterfaceType() const {
99259925
return Ty->castTo<AnyFunctionType>()->getResult();
99269926
}
99279927

9928-
bool AbstractFunctionDecl::hasDynamicSelfResult() const {
9929-
if (auto *funcDecl = dyn_cast<FuncDecl>(this))
9930-
return funcDecl->getResultInterfaceType()->hasDynamicSelfType();
9931-
return isa<ConstructorDecl>(this);
9932-
}
9933-
99349928
AbstractFunctionDecl *AbstractFunctionDecl::getAsyncAlternative() const {
99359929
// Async functions can't have async alternatives
99369930
if (hasAsync())

0 commit comments

Comments
 (0)