diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp index ac208f83648..b5bdd077fb4 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp @@ -40,38 +40,7 @@ be_visitor_interface_fwd_cdr_op_ch::~be_visitor_interface_fwd_cdr_op_ch (void) } int -be_visitor_interface_fwd_cdr_op_ch::visit_interface_fwd (be_interface_fwd *node) +be_visitor_interface_fwd_cdr_op_ch::visit_interface_fwd (be_interface_fwd *) { - AST_Interface *fd = node->full_definition (); - - // If this forward declared interface is defined later in the file, - // the CDR operator declaration (along with the corresponding - // declarations for members of the interface's scope) will be - // generated then. - if (fd->is_defined ()) - { - return 0; - } - - // No CDR operations for locality constraint interfaces. - if (node->cli_hdr_cdr_op_gen () - || node->imported ()) - { - return 0; - } - - TAO_OutStream *os = this->ctx_->stream (); - - *os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl - << "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl; - - *os << be_global->stub_export_macro () << " CORBA::Boolean " - << "operator<< (TAO_OutputCDR &, const " << node->full_name () - << "_ptr );" << be_nl; - *os << be_global->stub_export_macro () << " CORBA::Boolean " - << "operator>> (TAO_InputCDR &, " - << node->full_name () << "_ptr &);\n"; - - node->cli_hdr_cdr_op_gen (1); return 0; } |