summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-27 17:41:31 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-27 17:41:31 +0000
commit3214a460539e1d94832ac04de99d96d793e2e60e (patch)
treeb5377a4a8257d712ece5acd524c22fba2d52e0d9 /TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
parent028e58ede74df0d6980670f98bdee601a5524a5c (diff)
downloadATCD-3214a460539e1d94832ac04de99d96d793e2e60e.tar.gz
ChangeLogTag:Thu Aug 27 12:38:20 1998 Carlos O'Ryan <coryan@swarm.cs.wustl.edu>
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
index a6d26d9565e..cb0cdc2ef4c 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
@@ -47,12 +47,7 @@ be_visitor_union_branch_private_ch::~be_visitor_union_branch_private_ch (void)
int
be_visitor_union_branch_private_ch::visit_union_branch (be_union_branch *node)
{
- TAO_OutStream *os;
- be_type *bt; // union_branch's type
-
- os = this->ctx_->stream ();
- // first generate the type information
- bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = be_type::narrow_from_decl (node->field_type ());
if (!bt)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -303,13 +298,6 @@ be_visitor_union_branch_private_ch::visit_string (be_string *node)
TAO_OutStream *os; // output stream
be_decl *ub = this->ctx_->node (); // get union branch
be_decl *bu = this->ctx_->scope (); // get the enclosing union backend
- be_type *bt;
-
- // check if we are visiting this node via a visit to a typedef node
- if (this->ctx_->alias ())
- bt = this->ctx_->alias ();
- else
- bt = node;
if (!ub || !bu)
{
@@ -370,9 +358,6 @@ be_visitor_union_branch_private_ch::visit_structure (be_structure *node)
int
be_visitor_union_branch_private_ch::visit_typedef (be_typedef *node)
{
- TAO_OutStream *os; // output stream
-
- os = this->ctx_->stream ();
this->ctx_->alias (node); // save the typedef node for use in code generation
// as we visit the base type