summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2011-06-23 19:05:38 +0000
committerAlan Conway <aconway@apache.org>2011-06-23 19:05:38 +0000
commitf67217f074432daa52ba3e16966508313b9d6828 (patch)
tree6146afcd7ce27d51404410f32d164fc4ec66e6bd
parentc6ca02278b68a2490bcfb56ccfac8a0f56c9ac9b (diff)
downloadqpid-python-f67217f074432daa52ba3e16966508313b9d6828.tar.gz
NO-JIRA: remove dead code in qpid/cpp/src/qpid/cluster/UpdateClient.cpp
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1139036 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/cpp/src/qpid/cluster/UpdateClient.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/qpid/cpp/src/qpid/cluster/UpdateClient.cpp b/qpid/cpp/src/qpid/cluster/UpdateClient.cpp
index 77448789db..afe5b8ac3a 100644
--- a/qpid/cpp/src/qpid/cluster/UpdateClient.cpp
+++ b/qpid/cpp/src/qpid/cluster/UpdateClient.cpp
@@ -360,15 +360,6 @@ class MessageUpdater {
sb.get()->sendRawFrame(frame);
}
}
- // If the ttl > 0, we need to send the calculated expiration time to the updatee
- // Careful not to alter the message as a side effect e.g. by adding
- // an empty DeliveryProperties or setting TTL when it wasn't set before.
- uint64_t ttl = 0;
- if (message.payload->hasProperties<DeliveryProperties>()) {
- DeliveryProperties* dprops =
- message.payload->getProperties<DeliveryProperties>();
- if (dprops->hasTtl()) ttl = dprops->getTtl();
- };
}
void updateMessage(const boost::intrusive_ptr<broker::Message>& message) {