From 02ffc4a4eb4232632b35e4d0ab883de3998b4ecf Mon Sep 17 00:00:00 2001 From: parsons Date: Mon, 2 Oct 2000 20:06:33 +0000 Subject: ChangeLogTag: Mon Oct 2 14:59:44 2000 Jeff Parsons --- TAO/TAO_IDL/be/be_enum.cpp | 45 +-------------------------------------------- 1 file changed, 1 insertion(+), 44 deletions(-) (limited to 'TAO/TAO_IDL/be/be_enum.cpp') diff --git a/TAO/TAO_IDL/be/be_enum.cpp b/TAO/TAO_IDL/be/be_enum.cpp index 474fa8b9838..0569da441f5 100644 --- a/TAO/TAO_IDL/be/be_enum.cpp +++ b/TAO/TAO_IDL/be/be_enum.cpp @@ -43,54 +43,11 @@ be_enum::be_enum (UTL_ScopedName *n, p), UTL_Scope (AST_Decl::NT_enum), COMMON_Base (local, - abstract), - member_count_ (-1) + abstract) { this->size_type (be_decl::FIXED); } -// Compute total number of members. -int -be_enum::compute_member_count (void) -{ - UTL_ScopeActiveIterator *si = 0; - - this->member_count_ = 0; - - // if there are elements in this scope - if (this->nmembers () > 0) - { - // Instantiate a scope iterator. - ACE_NEW_RETURN (si, - UTL_ScopeActiveIterator (this, - UTL_Scope::IK_decls), - -1); - - while (!(si->is_done ())) - { - // Get the next AST decl node. - this->member_count_++; - si->next (); - } - - delete si; - } - - return 0; -} - -// return the member count -int -be_enum::member_count (void) -{ - if (this->member_count_ == -1) - { - this->compute_member_count (); - } - - return this->member_count_; -} - // Convert a numeric value to the string name UTL_ScopedName * be_enum::value_to_name (const unsigned long v) -- cgit v1.2.1