diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_scope.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_scope.cpp | 37 |
1 files changed, 5 insertions, 32 deletions
diff --git a/TAO/TAO_IDL/be/be_scope.cpp b/TAO/TAO_IDL/be/be_scope.cpp index 3f26593323e..16dfb2defe9 100644 --- a/TAO/TAO_IDL/be/be_scope.cpp +++ b/TAO/TAO_IDL/be/be_scope.cpp @@ -8,13 +8,13 @@ ACE_RCSID(be, be_scope, "$Id$") -// Default Constructor. +// Default Constructor be_scope::be_scope (void) : comma_ (0) { } -// Constructor. +// Constructor be_scope::be_scope (AST_Decl::NodeType type) : UTL_Scope (type), comma_ (0) @@ -25,8 +25,7 @@ be_scope::~be_scope (void) { } -// Code generation methods. - +// Code generation methods void be_scope::comma (unsigned short comma) { @@ -39,7 +38,7 @@ be_scope::comma (void) const return this->comma_; } -// Return the scope created by this node (if one exists, else NULL). +// return the scope created by this node (if one exists, else NULL) be_decl * be_scope::decl (void) { @@ -66,38 +65,12 @@ be_scope::decl (void) } } -void -be_scope::destroy (void) -{ - AST_Decl *i = 0; - UTL_ScopeActiveIterator *iter = 0; - - ACE_NEW (iter, - UTL_ScopeActiveIterator (this, - IK_decls)); - - while (!iter->is_done ()) - { - i = iter->item (); - i->destroy (); - delete i; - i = 0; - iter->next (); - } - - delete iter; - -// Still some glitches, but the call should eventually -// be made here. -// UTL_Scope::destroy (); -} - int be_scope::accept (be_visitor *visitor) { return visitor->visit_scope (this); } -// Narrowing methods. +// narrowing methods IMPL_NARROW_METHODS1 (be_scope, UTL_Scope) IMPL_NARROW_FROM_SCOPE (be_scope) |