From 6bbd94850c1b24e306c2cc42863ce381ebb45005 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 23 Jun 2011 19:05:38 +0000 Subject: NO-JIRA: remove dead code in qpid/cpp/src/qpid/cluster/UpdateClient.cpp git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1139036 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/UpdateClient.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'cpp') diff --git a/cpp/src/qpid/cluster/UpdateClient.cpp b/cpp/src/qpid/cluster/UpdateClient.cpp index 77448789db..afe5b8ac3a 100644 --- a/cpp/src/qpid/cluster/UpdateClient.cpp +++ b/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* dprops = - message.payload->getProperties(); - if (dprops->hasTtl()) ttl = dprops->getTtl(); - }; } void updateMessage(const boost::intrusive_ptr& message) { -- cgit v1.2.1