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 {
986
986
public:
987
987
AbstractFunctionDecl *const decl;
988
988
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
-
994
989
AbstractFunctionBodyScope (AbstractFunctionDecl *e) : decl(e) {}
995
990
virtual ~AbstractFunctionBodyScope () {}
996
991
997
992
protected:
998
993
ASTScopeImpl *expandSpecifically (ScopeCreator &scopeCreator) override ;
999
- void beCurrent () override ;
1000
- bool isCurrentIfWasExpanded () const override ;
1001
994
1002
995
private:
1003
996
void expandAScopeThatDoesNotCreateANewInsertionPoint (ScopeCreator &);
Original file line number Diff line number Diff line change @@ -1695,14 +1695,6 @@ bool ASTSourceFileScope::isCurrentIfWasExpanded() const {
1695
1695
return SF->getTopLevelDecls ().size () == numberOfDeclsAlreadySeen;
1696
1696
}
1697
1697
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
-
1706
1698
// Try to avoid the work of counting
1707
1699
static const bool assumeVarsDoNotGetAdded = true ;
1708
1700
You can’t perform that action at this time.
0 commit comments