diff options
-rw-r--r-- | qpid/cpp/src/qpid/cluster/UpdateClient.cpp | 9 |
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) { |