summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_operation/compiled_marshal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_operation/compiled_marshal.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/compiled_marshal.cpp59
1 files changed, 2 insertions, 57 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/compiled_marshal.cpp b/TAO/TAO_IDL/be/be_visitor_operation/compiled_marshal.cpp
index fec555db545..76fc1c10c7e 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/compiled_marshal.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/compiled_marshal.cpp
@@ -120,22 +120,17 @@ int be_visitor_operation_rettype_compiled_marshal::visit_array (be_array *node)
if (this->ctx_->sub_state () == TAO_CodeGen::TAO_CDR_OUTPUT)
{
-#if 0
*os << node->name () << "_forany (";
if (node->size_type () == be_decl::VARIABLE)
*os << "(" << node->name () << "_slice *)"
<< "_tao_retval.in ()" << ")";
else
*os << "_tao_retval" << ")";
-#else
- *os << "_tao_retval_forany";
-#endif
}
else if (this->ctx_->sub_state () == TAO_CodeGen::TAO_CDR_INPUT)
{
- *os << "_tao_retval_forany";
- // *os << node->name () << "_forany ("
- // << "_tao_retval" << ")";
+ *os << node->name () << "_forany ("
+ << "_tao_retval" << ")";
}
else
{
@@ -217,56 +212,6 @@ int be_visitor_operation_rettype_compiled_marshal::visit_interface_fwd (be_inter
return 0;
}
-#ifdef IDL_HAS_VALUETYPE
-
-int be_visitor_operation_rettype_compiled_marshal::visit_valuetype (be_valuetype *)
-{
- TAO_OutStream *os = this->ctx_->stream (); // get output stream
-
- if (this->ctx_->sub_state () == TAO_CodeGen::TAO_CDR_OUTPUT)
- {
- *os << "_tao_retval.in ()";
- }
- else if (this->ctx_->sub_state () == TAO_CodeGen::TAO_CDR_INPUT)
- {
- *os << "_tao_retval";
- }
- else
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "be_visitor_operation_rettype_compiled_marshal::"
- "visit_valuetype - "
- "Bad substate\n"),
- -1);
- }
- return 0;
-}
-
-int be_visitor_operation_rettype_compiled_marshal::visit_valuetype_fwd (be_valuetype_fwd *)
-{
- TAO_OutStream *os = this->ctx_->stream (); // get output stream
-
- if (this->ctx_->sub_state () == TAO_CodeGen::TAO_CDR_OUTPUT)
- {
- *os << "_tao_retval.in ()";
- }
- else if (this->ctx_->sub_state () == TAO_CodeGen::TAO_CDR_INPUT)
- {
- *os << "_tao_retval";
- }
- else
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "be_visitor_operation_rettype_compiled_marshal::"
- "visit_valuetype - "
- "Bad substate\n"),
- -1);
- }
- return 0;
-}
-
-#endif /* IDL_HAS_VALUETYPE */
-
int be_visitor_operation_rettype_compiled_marshal::visit_predefined_type (be_predefined_type *node)
{
TAO_OutStream *os = this->ctx_->stream (); // get output stream