Skip to content

Commit ccee48d

Browse files
committed
AST: Remove PatternBindingDecl::getNumBoundVariables()
1 parent 62764bb commit ccee48d

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

include/swift/AST/Decl.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,8 +1948,6 @@ class PatternBindingEntry {
19481948
CaptureInfo getCaptureInfo() const { return Captures; }
19491949
void setCaptureInfo(CaptureInfo captures) { Captures = captures; }
19501950

1951-
unsigned getNumBoundVariables() const;
1952-
19531951
private:
19541952
SourceLoc getLastAccessorEndLoc() const;
19551953
};

lib/AST/Decl.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,12 +1560,6 @@ VarDecl *PatternBindingEntry::getAnchoringVarDecl() const {
15601560
return variables[0];
15611561
}
15621562

1563-
unsigned PatternBindingEntry::getNumBoundVariables() const {
1564-
unsigned varCount = 0;
1565-
getPattern()->forEachVariable([&](VarDecl *) { ++varCount; });
1566-
return varCount;
1567-
}
1568-
15691563
SourceLoc PatternBindingEntry::getLastAccessorEndLoc() const {
15701564
SourceLoc lastAccessorEnd;
15711565
getPattern()->forEachVariable([&](VarDecl *var) {

0 commit comments

Comments
 (0)