@@ -712,13 +712,6 @@ class IterableDeclContext {
712
712
// / member loading, as a key when doing lookup in this IDC.
713
713
serialization::DeclID SerialID;
714
714
715
- // / Because \c parseDelayedDecl and lazy member adding can add members *after*
716
- // / an \c ASTScope tree is created, there must be some way for the tree to
717
- // / detect when a member has been added. A bit would suffice,
718
- // / but would be more fragile, The scope code could count the members each
719
- // / time, but I think it's a better trade to just keep a count here.
720
- unsigned MemberCount : 29 ;
721
-
722
715
// / Whether we have already added the parsed members into the context.
723
716
unsigned AddedParsedMembers : 1 ;
724
717
@@ -741,7 +734,6 @@ class IterableDeclContext {
741
734
public:
742
735
IterableDeclContext (IterableDeclContextKind kind)
743
736
: LastDeclAndKind(nullptr , kind) {
744
- MemberCount = 0 ;
745
737
AddedParsedMembers = 0 ;
746
738
HasOperatorDeclarations = 0 ;
747
739
HasNestedClassDeclarations = 0 ;
@@ -794,9 +786,6 @@ class IterableDeclContext {
794
786
// / is inserted immediately after the hint.
795
787
void addMember (Decl *member, Decl *hint = nullptr );
796
788
797
- // / See \c MemberCount
798
- unsigned getMemberCount () const ;
799
-
800
789
// / Check whether there are lazily-loaded members.
801
790
bool hasLazyMembers () const {
802
791
return FirstDeclAndLazyMembers.getInt ();
0 commit comments