File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -1321,20 +1321,16 @@ class ClosureParametersScope final : public ASTScopeImpl {
1321
1321
class TopLevelCodeScope final : public ASTScopeImpl {
1322
1322
public:
1323
1323
TopLevelCodeDecl *const decl;
1324
- BraceStmt *bodyWhenLastExpanded;
1325
1324
1326
1325
TopLevelCodeScope (TopLevelCodeDecl *e) : decl(e) {}
1327
1326
virtual ~TopLevelCodeScope () {}
1328
1327
1329
1328
protected:
1330
1329
ASTScopeImpl *expandSpecifically (ScopeCreator &scopeCreator) override ;
1331
- void beCurrent () override ;
1332
- bool isCurrentIfWasExpanded () const override ;
1333
1330
1334
1331
private:
1335
1332
AnnotatedInsertionPoint
1336
1333
expandAScopeThatCreatesANewInsertionPoint (ScopeCreator &);
1337
- std::vector<ASTScopeImpl *> rescueBodyScopesToReuse ();
1338
1334
1339
1335
public:
1340
1336
std::string getClassName () const override ;
Original file line number Diff line number Diff line change @@ -1703,11 +1703,6 @@ bool AbstractFunctionBodyScope::isCurrentIfWasExpanded() const {
1703
1703
return bodyWhenLastExpanded == decl->getBody (false );
1704
1704
}
1705
1705
1706
- void TopLevelCodeScope::beCurrent () { bodyWhenLastExpanded = decl->getBody (); }
1707
- bool TopLevelCodeScope::isCurrentIfWasExpanded () const {
1708
- return bodyWhenLastExpanded == decl->getBody ();
1709
- }
1710
-
1711
1706
// Try to avoid the work of counting
1712
1707
static const bool assumeVarsDoNotGetAdded = true ;
1713
1708
You can’t perform that action at this time.
0 commit comments