@@ -712,13 +712,6 @@ class IterableDeclContext {
712712 // / member loading, as a key when doing lookup in this IDC.
713713 serialization::DeclID SerialID;
714714
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-
722715 // / Whether we have already added the parsed members into the context.
723716 unsigned AddedParsedMembers : 1 ;
724717
@@ -741,7 +734,6 @@ class IterableDeclContext {
741734public:
742735 IterableDeclContext (IterableDeclContextKind kind)
743736 : LastDeclAndKind(nullptr , kind) {
744- MemberCount = 0 ;
745737 AddedParsedMembers = 0 ;
746738 HasOperatorDeclarations = 0 ;
747739 HasNestedClassDeclarations = 0 ;
@@ -794,9 +786,6 @@ class IterableDeclContext {
794786 // / is inserted immediately after the hint.
795787 void addMember (Decl *member, Decl *hint = nullptr );
796788
797- // / See \c MemberCount
798- unsigned getMemberCount () const ;
799-
800789 // / Check whether there are lazily-loaded members.
801790 bool hasLazyMembers () const {
802791 return FirstDeclAndLazyMembers.getInt ();
0 commit comments