summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-07-09 13:12:03 +0000
committerAlan Conway <aconway@apache.org>2008-07-09 13:12:03 +0000
commit6cddd1d794278e7e68163e88851f09553dd5123f (patch)
treeff6e41b876922318d9533034649405015f9bf159 /cpp/src
parent82ce054ad0b111cd13569d0b3297c133f186bb17 (diff)
downloadqpid-python-6cddd1d794278e7e68163e88851f09553dd5123f.tar.gz
Removed dead code.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@675155 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/broker/SemanticState.cpp14
-rw-r--r--cpp/src/qpid/broker/SemanticState.h2
2 files changed, 1 insertions, 15 deletions
diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp
index a4a40a03e8..2bc366dc86 100644
--- a/cpp/src/qpid/broker/SemanticState.cpp
+++ b/cpp/src/qpid/broker/SemanticState.cpp
@@ -62,7 +62,6 @@ SemanticState::SemanticState(DeliveryAdapter& da, SessionContext& ss)
prefetchCount(0),
tagGenerator("sgen"),
dtxSelected(false),
- flowActive(true),
outputTasks(ss)
{
outstanding.reset();
@@ -288,7 +287,7 @@ bool SemanticState::ConsumerImpl::filter(intrusive_ptr<Message> msg)
bool SemanticState::ConsumerImpl::accept(intrusive_ptr<Message> msg)
{
- blocked = !(filter(msg) && checkCredit(msg) && parent->flowActive && (!ackExpected || parent->checkPrefetch(msg)));
+ blocked = !(filter(msg) && checkCredit(msg) && (!ackExpected || parent->checkPrefetch(msg)));
return !blocked;
}
@@ -443,17 +442,6 @@ DeliveryId SemanticState::redeliver(QueuedMessage& msg, DeliveryToken::shared_pt
return deliveryAdapter.deliver(msg, token);
}
-void SemanticState::flow(bool active)
-{
- bool requestDelivery(!flowActive && active);
- flowActive = active;
- if (requestDelivery) {
- //there may be messages that can be now be delivered
- requestDispatch();
- }
-}
-
-
SemanticState::ConsumerImpl& SemanticState::find(const std::string& destination)
{
ConsumerImplMap::iterator i = consumers.find(destination);
diff --git a/cpp/src/qpid/broker/SemanticState.h b/cpp/src/qpid/broker/SemanticState.h
index 1310e6c51a..0c3b715784 100644
--- a/cpp/src/qpid/broker/SemanticState.h
+++ b/cpp/src/qpid/broker/SemanticState.h
@@ -115,7 +115,6 @@ class SemanticState : public sys::OutputTask,
bool dtxSelected;
DtxBufferMap suspendedXids;
framing::SequenceSet accumulatedAck;
- bool flowActive;
boost::shared_ptr<Exchange> cacheExchange;
sys::AggregateOutput outputTasks;
@@ -174,7 +173,6 @@ class SemanticState : public sys::OutputTask,
void suspendDtx(const std::string& xid);
void resumeDtx(const std::string& xid);
void recover(bool requeue);
- void flow(bool active);
DeliveryId redeliver(QueuedMessage& msg, DeliveryToken::shared_ptr token);
void acquire(DeliveryId first, DeliveryId last, DeliveryIds& acquired);
void release(DeliveryId first, DeliveryId last, bool setRedelivered);