@@ -345,9 +345,6 @@ class ASTScopeImpl {
345345 virtual SourceRange sourceRangeForDeferredExpansion () const ;
346346
347347public:
348- virtual NullablePtr<AbstractStorageDecl>
349- getEnclosingAbstractStorageDecl () const ;
350-
351348 bool isATypeDeclScope () const ;
352349
353350private:
@@ -845,9 +842,6 @@ class GenericParamScope final : public ASTScopeImpl {
845842 void printSpecifics (llvm::raw_ostream &out) const override ;
846843
847844public:
848- NullablePtr<AbstractStorageDecl>
849- getEnclosingAbstractStorageDecl () const override ;
850-
851845 NullablePtr<const void > addressForPrinting () const override {
852846 return paramList;
853847 }
@@ -883,9 +877,6 @@ class AbstractFunctionDeclScope final : public ASTScopeImpl {
883877 virtual NullablePtr<Decl> getDeclIfAny () const override { return decl; }
884878 Decl *getDecl () const { return decl; }
885879
886- NullablePtr<AbstractStorageDecl>
887- getEnclosingAbstractStorageDecl () const override ;
888-
889880 NullablePtr<const void > getReferrent () const override ;
890881
891882protected:
@@ -919,8 +910,6 @@ class ParameterListScope final : public ASTScopeImpl {
919910 getSourceRangeOfThisASTNode (bool omitAssertions = false ) const override ;
920911 virtual NullablePtr<DeclContext> getDeclContext () const override ;
921912
922- NullablePtr<AbstractStorageDecl>
923- getEnclosingAbstractStorageDecl () const override ;
924913 NullablePtr<const void > addressForPrinting () const override { return params; }
925914};
926915
@@ -1285,9 +1274,6 @@ class SpecializeAttributeScope final : public ASTScopeImpl {
12851274 return specializeAttr;
12861275 }
12871276
1288- NullablePtr<AbstractStorageDecl>
1289- getEnclosingAbstractStorageDecl () const override ;
1290-
12911277 NullablePtr<DeclAttribute> getDeclAttributeIfAny () const override {
12921278 return specializeAttr;
12931279 }
@@ -1318,9 +1304,6 @@ class DifferentiableAttributeScope final : public ASTScopeImpl {
13181304 return differentiableAttr;
13191305 }
13201306
1321- NullablePtr<AbstractStorageDecl>
1322- getEnclosingAbstractStorageDecl () const override ;
1323-
13241307 NullablePtr<DeclAttribute> getDeclAttributeIfAny () const override {
13251308 return differentiableAttr;
13261309 }
@@ -1362,10 +1345,6 @@ class SubscriptDeclScope final : public ASTScopeImpl {
13621345
13631346protected:
13641347 NullablePtr<const GenericParamList> genericParams () const override ;
1365- NullablePtr<AbstractStorageDecl>
1366- getEnclosingAbstractStorageDecl () const override {
1367- return decl;
1368- }
13691348};
13701349
13711350class EnumElementScope : public ASTScopeImpl {
0 commit comments