summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_exception.cpp
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-05-10 20:52:46 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-05-10 20:52:46 +0000
commit8106ea1d9086cb17eabe748f3ff9e2cf54dfe3b3 (patch)
treebe85e81fc3d095096de97257ce22aab45e3d4a58 /TAO/TAO_IDL/be/be_exception.cpp
parent73344b57d62f785899c966d7cf81c70029918ebe (diff)
downloadATCD-8106ea1d9086cb17eabe748f3ff9e2cf54dfe3b3.tar.gz
ChangeLogTag:Wed May 10 15:44:23 2000 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'TAO/TAO_IDL/be/be_exception.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_exception.cpp38
1 files changed, 1 insertions, 37 deletions
diff --git a/TAO/TAO_IDL/be/be_exception.cpp b/TAO/TAO_IDL/be/be_exception.cpp
index 7de0b3cdfe9..e4d1db32990 100644
--- a/TAO/TAO_IDL/be/be_exception.cpp
+++ b/TAO/TAO_IDL/be/be_exception.cpp
@@ -41,47 +41,11 @@ be_exception::be_exception (UTL_ScopedName *n,
: AST_Decl (AST_Decl::NT_except, n, p),
AST_Structure (AST_Decl::NT_except, n, p, local, abstract),
UTL_Scope (AST_Decl::NT_except),
- COMMON_Base (local, abstract),
- member_count_ (-1)
+ COMMON_Base (local, abstract)
{
this->size_type (be_decl::VARIABLE); // always the case
}
-// compute total number of members
-int
-be_exception::compute_member_count (void)
-{
- UTL_ScopeActiveIterator *si; // iterator
-
- this->member_count_ = 0;
-
- // if there are elements in this scope
- if (this->nmembers () > 0)
- {
- // instantiate a scope iterator.
- si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls);
-
- while (!(si->is_done ()))
- {
- // get the next AST decl node
- this->member_count_++;
- si->next ();
- } // end of while
- delete si; // free the iterator object
- }
- return 0;
-}
-
-// return the member count
-int
-be_exception::member_count (void)
-{
- if (this->member_count_ == -1)
- this->compute_member_count ();
-
- return this->member_count_;
-}
-
// Are we or the parameter node involved in any recursion
idl_bool
be_exception::in_recursion (be_type *node)