diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-02-23 21:33:40 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-02-23 21:33:40 +0000 |
commit | c1582437dbf9d3ad0576fcd0cc5440ae2dd87880 (patch) | |
tree | da0c63bd8b0ba92aa8d4c0d8bafd0ac47bb3a9f3 | |
parent | 22c42d1dc52192faca6a3d6180662f8784631d5a (diff) | |
download | ATCD-c1582437dbf9d3ad0576fcd0cc5440ae2dd87880.tar.gz |
commented out some unused variables to avoid compiler warnings. The
comments correspond to commented-out sections of code.
-rw-r--r-- | TAO/TAO_IDL/be/be_sequence.cpp | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/TAO/TAO_IDL/be/be_sequence.cpp b/TAO/TAO_IDL/be/be_sequence.cpp index 470e9a3ce41..dd773852e48 100644 --- a/TAO/TAO_IDL/be/be_sequence.cpp +++ b/TAO/TAO_IDL/be/be_sequence.cpp @@ -1,3 +1,5 @@ +// $Id$ + // ============================================================================ // // = LIBRARY @@ -17,9 +19,9 @@ // // ============================================================================ -#include "idl.h" -#include "idl_extern.h" -#include "be.h" +#include "idl.h" +#include "idl_extern.h" +#include "be.h" #include "be_visitor_sequence.h" /* @@ -195,10 +197,12 @@ be_sequence::managed_type (void) int be_sequence::gen_client_header (void) { +#if 0 /* visitor code */ TAO_OutStream *ch; // output stream TAO_NL nl; // end line be_type *bt; // type node be_state *s; // state based code gen object +#endif /* visitor code */ if (!this->cli_hdr_gen_) { @@ -412,7 +416,7 @@ be_sequence::gen_client_header (void) *ch << "};\n"; ch->indent (); *ch << "typedef " << this->local_name () << "* " - << this->local_name () << "_ptr;\n"; + << this->local_name () << "_ptr;\n"; // Generate the typecode decl if (this->is_nested ()) { @@ -426,9 +430,9 @@ be_sequence::gen_client_header (void) // we are in the ROOT scope ch->indent (); *ch << "extern " - << idl_global->export_macro () - << " CORBA::TypeCode_ptr " - << this->tc_name ()->last_component () << ";\n\n"; + << idl_global->export_macro () + << " CORBA::TypeCode_ptr " + << this->tc_name ()->last_component () << ";\n\n"; } ch->gen_endif (); // endif macro @@ -474,8 +478,10 @@ be_sequence::gen_client_stubs (void) { TAO_OutStream *cs; // output stream TAO_NL nl; // end line +#if 0 /* visitor code */ be_type *bt; // base type be_state *s; //state object +#endif /* visitor code */ if (!this->cli_stub_gen_) { @@ -486,7 +492,7 @@ be_sequence::gen_client_stubs (void) // generate the ifdefined macro for the sequence type cs->gen_ifdef_macro (this->flatname ()); -#if 0 // visitor code +#if 0 /* visitor code */ // retrieve base type bt = be_type::narrow_from_decl (this->base_type ()); if (!bt) @@ -908,7 +914,7 @@ be_sequence::gen_client_stubs (void) cs->decr_indent (); *cs << "}\n\n"; } -#endif +#endif /* visitor code */ // generate the typecode information here cs->indent (); // start from current indentation level *cs << "static const CORBA::Long _oc_" << this->flatname () << "[] =" << @@ -949,9 +955,11 @@ int be_sequence::gen_client_inline (void) { TAO_OutStream *ci; // output stream +#if 0 /* visitor code */ TAO_NL nl; // end line be_state *s; // code gen state be_type *bt; // base type +#endif /* visitor code */ if (!this->cli_inline_gen_) { @@ -2536,7 +2544,6 @@ int be_sequence::gen_encapsulation (void) { TAO_OutStream *os; // output stream - TAO_NL nl; // end line TAO_CodeGen *cg = TAO_CODEGEN::instance (); be_type *bt; // base type @@ -2612,7 +2619,7 @@ be_sequence::decl (void) } int be_sequence::write_as_return (TAO_OutStream *stream, - be_type *type) + be_type *type) { *stream << type->name () << " *"; return 0; |