Skip to content

Commit de08e25

Browse files
committed
ASTScope: Remove AbstractPatternEntryScope::isLastEntry()
1 parent 9119f73 commit de08e25

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

include/swift/AST/ASTScope.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,6 @@ class AbstractPatternEntryScope : public ASTScopeImpl {
10651065
ScopeCreator &scopeCreator, function_ref<void(VarDecl *)> foundOne) const;
10661066

10671067
public:
1068-
bool isLastEntry() const;
10691068
NullablePtr<Decl> getDeclIfAny() const override { return decl; }
10701069
Decl *getDecl() const { return decl; }
10711070
};

lib/AST/ASTScopeCreation.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,10 +1440,6 @@ void AbstractPatternEntryScope::forEachVarDeclWithLocalizableAccessors(
14401440
});
14411441
}
14421442

1443-
bool AbstractPatternEntryScope::isLastEntry() const {
1444-
return patternEntryIndex + 1 == decl->getPatternList().size();
1445-
}
1446-
14471443
// Following must be after uses to ensure templates get instantiated
14481444
#pragma mark getEnclosingAbstractStorageDecl
14491445

0 commit comments

Comments
 (0)