diff options
| author | Alan Conway <aconway@apache.org> | 2007-11-09 23:30:59 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-11-09 23:30:59 +0000 |
| commit | e95499012b4663fdaa41a5b875be75492c1c8fb0 (patch) | |
| tree | d0996eaa0bd4283431932fe085e6a8972d7598f1 /cpp/src/qpid/framing/AMQHeaderBody.cpp | |
| parent | b78af32f2bb9c725bacec590dbdeecaec9b2906c (diff) | |
| download | qpid-python-e95499012b4663fdaa41a5b875be75492c1c8fb0.tar.gz | |
Get rid of BasicHeaderProperties, dead code from 0-8 protocol.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@593692 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing/AMQHeaderBody.cpp')
| -rw-r--r-- | cpp/src/qpid/framing/AMQHeaderBody.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cpp/src/qpid/framing/AMQHeaderBody.cpp b/cpp/src/qpid/framing/AMQHeaderBody.cpp index 93568f5f46..8e02f6827f 100644 --- a/cpp/src/qpid/framing/AMQHeaderBody.cpp +++ b/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; } |
