File tree Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -1144,8 +1144,6 @@ class PatternEntryDeclScope final : public AbstractPatternEntryScope {
1144
1144
1145
1145
protected:
1146
1146
ASTScopeImpl *expandSpecifically (ScopeCreator &scopeCreator) override ;
1147
- void beCurrent () override ;
1148
- bool isCurrentIfWasExpanded () const override ;
1149
1147
1150
1148
private:
1151
1149
AnnotatedInsertionPoint
Original file line number Diff line number Diff line change @@ -1695,27 +1695,6 @@ bool ASTSourceFileScope::isCurrentIfWasExpanded() const {
1695
1695
return SF->getTopLevelDecls ().size () == numberOfDeclsAlreadySeen;
1696
1696
}
1697
1697
1698
- // Try to avoid the work of counting
1699
- static const bool assumeVarsDoNotGetAdded = true ;
1700
-
1701
- void PatternEntryDeclScope::beCurrent () {
1702
- initWhenLastExpanded = getPatternEntry ().getOriginalInit ();
1703
- if (assumeVarsDoNotGetAdded && varCountWhenLastExpanded)
1704
- return ;
1705
- varCountWhenLastExpanded = getPatternEntry ().getNumBoundVariables ();
1706
- }
1707
- bool PatternEntryDeclScope::isCurrentIfWasExpanded () const {
1708
- if (initWhenLastExpanded != getPatternEntry ().getOriginalInit ())
1709
- return false ;
1710
- if (assumeVarsDoNotGetAdded && varCountWhenLastExpanded) {
1711
- ASTScopeAssert (varCountWhenLastExpanded ==
1712
- getPatternEntry ().getNumBoundVariables (),
1713
- " Vars were not supposed to be added to a pattern entry." );
1714
- return true ;
1715
- }
1716
- return getPatternEntry ().getNumBoundVariables () == varCountWhenLastExpanded;
1717
- }
1718
-
1719
1698
#pragma mark getParentOfASTAncestorScopesToBeRescued
1720
1699
NullablePtr<ASTScopeImpl>
1721
1700
ASTScopeImpl::getParentOfASTAncestorScopesToBeRescued () {
You can’t perform that action at this time.
0 commit comments