summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp
index 25ef8997291..73ff0b66ce8 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp
@@ -109,10 +109,6 @@ be_visitor_union_any_op_cs::visit_union (be_union *node)
<< ")" << be_uidt_nl
<< "{" << be_idt_nl
- << "if (0 == &_tao_elem) // Trying to de-reference NULL object" << be_idt_nl
- << "_tao_any <<= static_cast< ::" << node->name () << " *>( 0 ); // Use non-copying insertion of a NULL" << be_uidt_nl
- << "else" << be_idt_nl
-
<< "TAO::Any_Dual_Impl_T< ::" << node->name () << ">::insert_copy ("
<< be_idt << be_idt_nl
<< "_tao_any," << be_nl
@@ -186,10 +182,6 @@ be_visitor_union_any_op_cs::visit_union (be_union *node)
<< ")" << be_uidt_nl
<< "{" << be_idt_nl
- << "if (0 == &_tao_elem) // Trying to de-reference NULL object" << be_idt_nl
- << "_tao_any <<= static_cast<" << node->name () << " *>( 0 ); // Use non-copying insertion of a NULL" << be_uidt_nl
- << "else" << be_idt_nl
-
<< "TAO::Any_Dual_Impl_T<" << node->name () << ">::insert_copy ("
<< be_idt << be_idt_nl
<< "_tao_any," << be_nl