summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/framing/AMQHeaderBody.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/src/qpid/framing/AMQHeaderBody.cpp')
-rw-r--r--qpid/cpp/src/qpid/framing/AMQHeaderBody.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/qpid/cpp/src/qpid/framing/AMQHeaderBody.cpp b/qpid/cpp/src/qpid/framing/AMQHeaderBody.cpp
index 93568f5f46..8e02f6827f 100644
--- a/qpid/cpp/src/qpid/framing/AMQHeaderBody.cpp
+++ b/qpid/cpp/src/qpid/framing/AMQHeaderBody.cpp
@@ -44,9 +44,6 @@ void qpid::framing::AMQHeaderBody::decode(Buffer& buffer, uint32_t size){
uint16_t type = buffer.getShort();
//The following switch could be generated as the number of options increases:
switch(type) {
- case BasicHeaderProperties::TYPE:
- decode(BasicHeaderProperties(), buffer, len - 2);
- break;
case MessageProperties::TYPE:
decode(MessageProperties(), buffer, len - 2);
break;
@@ -66,10 +63,6 @@ uint64_t qpid::framing::AMQHeaderBody::getContentLength() const
if (mProps) {
return mProps->getContentLength();
}
- const BasicHeaderProperties* bProps = get<BasicHeaderProperties>();
- if (bProps) {
- return bProps->getContentLength();
- }
return 0;
}