Skip to content

Commit 25015a5

Browse files
committed
[AST] Remove some dead code
1 parent 033e31d commit 25015a5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

include/swift/AST/Initializer.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,6 @@ class SerializedPatternBindingInitializer : public SerializedLocalDeclContext {
150150
/// A default argument expression. The parent context is the function
151151
/// (possibly a closure) for which this is a default argument.
152152
class DefaultArgumentInitializer : public Initializer {
153-
friend class ASTContext; // calls reset on unused contexts
154-
void reset(DeclContext *parent, unsigned index) {
155-
setParent(parent);
156-
SpareBits = index;
157-
}
158-
159153
public:
160154
explicit DefaultArgumentInitializer(DeclContext *parent, unsigned index)
161155
: Initializer(InitializerKind::DefaultArgument, parent) {

0 commit comments

Comments
 (0)