diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_operation/rettype_vardecl_cs.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_operation/rettype_vardecl_cs.cpp | 44 |
1 files changed, 4 insertions, 40 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/rettype_vardecl_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/rettype_vardecl_cs.cpp index 2dc75fbe214..5613cffe2db 100644 --- a/TAO/TAO_IDL/be/be_visitor_operation/rettype_vardecl_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_operation/rettype_vardecl_cs.cpp @@ -18,9 +18,9 @@ // // ============================================================================ -#include "idl.h" -#include "idl_extern.h" -#include "be.h" +#include "idl.h" +#include "idl_extern.h" +#include "be.h" #include "be_visitor_operation.h" @@ -56,7 +56,7 @@ be_visitor_operation_rettype_vardecl_cs::visit_array (be_array *node) bt = node; os->indent (); - *os << bt->name () << "_slice *_tao_retval = 0;\n\n"; + *os << bt->name () << "_slice *_tao_retval = 0;\n"; return 0; } @@ -108,42 +108,6 @@ be_visitor_operation_rettype_vardecl_cs::visit_interface_fwd (be_interface_fwd * return 0; } -#ifdef IDL_HAS_VALUETYPE - -int -be_visitor_operation_rettype_vardecl_cs::visit_valuetype (be_valuetype *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << "* _tao_retval = 0;\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_valuetype_fwd (be_valuetype_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << "* _tao_retval = 0;\n"; - return 0; -} - -#endif /* IDL_HAS_VALUETYPE */ - int be_visitor_operation_rettype_vardecl_cs::visit_predefined_type (be_predefined_type *node) { |