summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/BasicStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/BasicStream.cpp')
-rw-r--r--cpp/src/Ice/BasicStream.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp
index 96a8812b402..41681accfbf 100644
--- a/cpp/src/Ice/BasicStream.cpp
+++ b/cpp/src/Ice/BasicStream.cpp
@@ -93,8 +93,7 @@ IceInternal::BasicStream::swap(BasicStream& other)
{
assert(_instance == other._instance);
- b.swap(other.b);
- std::swap(i, other.i);
+ Buffer::swap(other);
//
// Swap is never called for BasicStreams that have more than one
@@ -141,17 +140,6 @@ IceInternal::BasicStream::swap(BasicStream& other)
std::swap(_objectList, other._objectList);
}
-void
-IceInternal::BasicStream::reserve(Container::size_type sz)
-{
- if(sz > _messageSizeMax)
- {
- throw MemoryLimitException(__FILE__, __LINE__);
- }
-
- b.reserve(sz);
-}
-
//
// startSeq() and endSeq() sanity-check sequence sizes during
// unmarshaling and prevent malicious messages with incorrect sequence