File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed
Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -986,18 +986,11 @@ class AbstractFunctionBodyScope : public ASTScopeImpl {
986986public:
987987 AbstractFunctionDecl *const decl;
988988
989- // / \c Parser::parseAbstractFunctionBodyDelayed can call \c
990- // / AbstractFunctionDecl::setBody after the tree has been constructed. So if
991- // / this changes, have to rebuild body.
992- NullablePtr<BraceStmt> bodyWhenLastExpanded;
993-
994989 AbstractFunctionBodyScope (AbstractFunctionDecl *e) : decl(e) {}
995990 virtual ~AbstractFunctionBodyScope () {}
996991
997992protected:
998993 ASTScopeImpl *expandSpecifically (ScopeCreator &scopeCreator) override ;
999- void beCurrent () override ;
1000- bool isCurrentIfWasExpanded () const override ;
1001994
1002995private:
1003996 void expandAScopeThatDoesNotCreateANewInsertionPoint (ScopeCreator &);
Original file line number Diff line number Diff line change @@ -1695,14 +1695,6 @@ bool ASTSourceFileScope::isCurrentIfWasExpanded() const {
16951695 return SF->getTopLevelDecls ().size () == numberOfDeclsAlreadySeen;
16961696}
16971697
1698- void AbstractFunctionBodyScope::beCurrent () {
1699- bodyWhenLastExpanded = decl->getBody (false );
1700- }
1701- bool AbstractFunctionBodyScope::isCurrentIfWasExpanded () const {
1702- // Pass in false to keep the compiler from synthesizing one.
1703- return bodyWhenLastExpanded == decl->getBody (false );
1704- }
1705-
17061698// Try to avoid the work of counting
17071699static const bool assumeVarsDoNotGetAdded = true ;
17081700
You can’t perform that action at this time.
0 commit comments