diff options
Diffstat (limited to 'ace/CDR_Stream.cpp')
-rw-r--r-- | ace/CDR_Stream.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/ace/CDR_Stream.cpp b/ace/CDR_Stream.cpp index afc43abc05b..2ca41fe93ed 100644 --- a/ace/CDR_Stream.cpp +++ b/ace/CDR_Stream.cpp @@ -613,30 +613,6 @@ ACE_OutputCDR::write_array (const void *x, return false; } - -ACE_CDR::Boolean -ACE_OutputCDR::replace (ACE_CDR::Long x, char* loc) -{ - if (this->find (loc) == 0) - return false; - -#if !defined (ACE_ENABLE_SWAP_ON_WRITE) - *reinterpret_cast<ACE_CDR::Long*> (loc) = x; -#else - if (!strm->do_byte_swap ()) - { - *reinterpret_cast<ACE_CDR::Long *> (loc) = x; - } - else - { - ACE_CDR::swap_4 (reinterpret_cast<const char*> (&x), loc); - } -#endif /* ACE_ENABLE_SWAP_ON_WRITE */ - - return true; -} - - ACE_CDR::Boolean ACE_OutputCDR::write_boolean_array (const ACE_CDR::Boolean* x, ACE_CDR::ULong length) @@ -656,23 +632,6 @@ ACE_OutputCDR::write_boolean_array (const ACE_CDR::Boolean* x, return this->good_bit (); } - -ACE_Message_Block* -ACE_OutputCDR::find (char* loc) -{ - ACE_Message_Block* mb = 0; - for (mb = &this->start_; mb != 0; mb = mb->cont ()) - { - if (loc <= mb->wr_ptr () && loc >= mb->rd_ptr ()) - { - break; - } - } - - return mb; -} - - // **************************************************************** ACE_InputCDR::ACE_InputCDR (const char *buf, |