diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-10-08 14:55:22 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-10-08 14:55:22 +0000 |
commit | c502d0c2e0588db1424983482721ae0f2aed1299 (patch) | |
tree | 38ca77b9f0612ea8b2f87c5f9baafc63112fd05c /ace/Message_Block.i | |
parent | 2966fa4693c2d98651d192b1c6d7d674fd791252 (diff) | |
download | ATCD-c502d0c2e0588db1424983482721ae0f2aed1299.tar.gz |
uninlined <total_length> to prevent "used before declared" warnings.
Diffstat (limited to 'ace/Message_Block.i')
-rw-r--r-- | ace/Message_Block.i | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/ace/Message_Block.i b/ace/Message_Block.i index d73d1f3f986..830a3ad5c49 100644 --- a/ace/Message_Block.i +++ b/ace/Message_Block.i @@ -100,22 +100,6 @@ ACE_Message_Block::length (void) const return this->wr_ptr_ - this->rd_ptr_; } -ACE_INLINE size_t -ACE_Message_Block::total_length (void) const -{ - ACE_TRACE ("ACE_Message_Block::total_length"); - - size_t length = 0; - for (const ACE_Message_Block *i = this; - i != 0; - i = i->cont ()) - { - length += i->length (); - } - - return length; -} - // Sets the length of the "active" portion of the message. This is // defined as the offset from RD_PTR to WR_PTR. |