Skip to content

Commit 44c6248

Browse files
author
David Ungar
committed
Rm redundant computeSelfDCForParemt
1 parent 40cd518 commit 44c6248

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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -847,10 +847,6 @@ class PureFunctionBodyScope final : public AbstractFunctionBodyScope {
847847
std::string getClassName() const override;
848848
bool lookupLocalBindings(Optional<bool>,
849849
DeclConsumer consumer) const override;
850-
851-
protected:
852-
NullablePtr<DeclContext>
853-
computeSelfDCForParent(NullablePtr<DeclContext>) const override;
854850
};
855851

856852
class DefaultArgumentInitializerScope final : public ASTScopeImpl {

lib/AST/ASTScopeLookup.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -597,10 +597,6 @@ MethodBodyScope::computeSelfDCForParent(NullablePtr<DeclContext> selfDC) const {
597597
assert(!selfDC && "Losing selfDC");
598598
return decl;
599599
}
600-
NullablePtr<DeclContext> PureFunctionBodyScope::computeSelfDCForParent(
601-
NullablePtr<DeclContext> selfDC) const {
602-
return selfDC;
603-
}
604600

605601
#pragma mark ifUnknownIsCascadingUseAccordingTo
606602

0 commit comments

Comments
 (0)