Skip to content

Commit 5461508

Browse files
committed
ASTScope: Remove isATypeDeclScope()
1 parent c5edc45 commit 5461508

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

include/swift/AST/ASTScope.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,6 @@ class ASTScopeImpl {
344344
virtual NullablePtr<ASTScopeImpl> insertionPointForDeferredExpansion();
345345
virtual SourceRange sourceRangeForDeferredExpansion() const;
346346

347-
public:
348-
bool isATypeDeclScope() const;
349-
350347
private:
351348
virtual ScopeCreator &getScopeCreator();
352349

lib/AST/ASTScopeCreation.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,11 +1424,6 @@ AbstractPatternEntryScope::AbstractPatternEntryScope(
14241424
"out of bounds");
14251425
}
14261426

1427-
bool ASTScopeImpl::isATypeDeclScope() const {
1428-
Decl *const pd = getDeclIfAny().getPtrOrNull();
1429-
return pd && (isa<NominalTypeDecl>(pd) || isa<ExtensionDecl>(pd));
1430-
}
1431-
14321427
#pragma mark new operators
14331428
void *ASTScopeImpl::operator new(size_t bytes, const ASTContext &ctx,
14341429
unsigned alignment) {

0 commit comments

Comments
 (0)