summaryrefslogtreecommitdiff
path: root/cpp/src
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
commit2f9cd3e47de7dfbe83ead0de48a4cc5c8f76cb6f (patch)
treec022b2e1827e9108c4029fbc6a0e8e473de07135 /cpp/src
parent36fc63d0921b3e09f9775d964228fa683826d7cb (diff)
downloadqpid-python-2f9cd3e47de7dfbe83ead0de48a4cc5c8f76cb6f.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/qpid@1139036 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/cluster/UpdateClient.cpp9
1 files changed, 0 insertions, 9 deletions
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>()) {
- DeliveryProperties* dprops =
- message.payload->getProperties<DeliveryProperties>();
- if (dprops->hasTtl()) ttl = dprops->getTtl();
- };
}
void updateMessage(const boost::intrusive_ptr<broker::Message>& message) {