From 83b2835503c6e01997e03e61fc2dbb0250e7e6e8 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Tue, 31 Jul 2012 21:39:27 +0000 Subject: NO-JIRA: Removed unused return parameter git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1367790 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/client/TCPConnector.cpp | 5 ++--- qpid/cpp/src/qpid/client/TCPConnector.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/client/TCPConnector.cpp b/qpid/cpp/src/qpid/client/TCPConnector.cpp index 7b2ef648be..1dd951d339 100644 --- a/qpid/cpp/src/qpid/client/TCPConnector.cpp +++ b/qpid/cpp/src/qpid/client/TCPConnector.cpp @@ -266,7 +266,7 @@ size_t TCPConnector::encode(const char* buffer, size_t size) return bytesWritten; } -bool TCPConnector::readbuff(AsynchIO& aio, AsynchIO::BufferBase* buff) +void TCPConnector::readbuff(AsynchIO& aio, AsynchIO::BufferBase* buff) { Codec* codec = securityLayer.get() ? (Codec*) securityLayer.get() : (Codec*) this; int32_t decoded = codec->decode(buff->bytes+buff->dataStart, buff->dataCount); @@ -281,10 +281,9 @@ bool TCPConnector::readbuff(AsynchIO& aio, AsynchIO::BufferBase* buff) // Give whole buffer back to aio subsystem aio.queueReadBuffer(buff); } - return true; } -size_t TCPConnector::decode(const char* buffer, size_t size) +size_t TCPConnector::decode(const char* buffer, size_t size) { framing::Buffer in(const_cast(buffer), size); if (!initiated) { diff --git a/qpid/cpp/src/qpid/client/TCPConnector.h b/qpid/cpp/src/qpid/client/TCPConnector.h index cad59043d9..c87d544816 100644 --- a/qpid/cpp/src/qpid/client/TCPConnector.h +++ b/qpid/cpp/src/qpid/client/TCPConnector.h @@ -100,7 +100,7 @@ protected: void start(sys::AsynchIO* aio_); void initAmqp(); virtual void connectFailed(const std::string& msg); - bool readbuff(qpid::sys::AsynchIO&, qpid::sys::AsynchIOBufferBase*); + void readbuff(qpid::sys::AsynchIO&, qpid::sys::AsynchIOBufferBase*); void writebuff(qpid::sys::AsynchIO&); void eof(qpid::sys::AsynchIO&); void disconnected(qpid::sys::AsynchIO&); -- cgit v1.2.1