aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/util
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2016-01-11 10:11:50 -0800
committerGravatar Vijay Pai <vpai@google.com>2016-01-11 10:11:50 -0800
commitb30bc2aad6438cf89c11569fac436c83a7133f4b (patch)
tree87d6c8c78d5350bd740237a6048fba80802dab59 /src/cpp/util
parent6045681003bef90de4d58952474893cfb56741e4 (diff)
Remove dead code and a thus unneeded change to C++ bbuf
Diffstat (limited to 'src/cpp/util')
-rw-r--r--src/cpp/util/byte_buffer.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/cpp/util/byte_buffer.cc b/src/cpp/util/byte_buffer.cc
index 91e202023c..5245739c89 100644
--- a/src/cpp/util/byte_buffer.cc
+++ b/src/cpp/util/byte_buffer.cc
@@ -79,12 +79,6 @@ size_t ByteBuffer::Length() const {
}
}
-void ByteBuffer::MoveFrom(ByteBuffer* bbuf) {
- Clear(); // in case we already had something, but we shouldn't use this then
- buffer_ = bbuf->buffer_;
- bbuf->buffer_ = nullptr;
-}
-
ByteBuffer::ByteBuffer(const ByteBuffer& buf):
buffer_(grpc_byte_buffer_copy(buf.buffer_)) {
}