summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/SemanticState.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/broker/SemanticState.cpp')
-rw-r--r--cpp/src/qpid/broker/SemanticState.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp
index 09f5b8ce98..8afc2f0853 100644
--- a/cpp/src/qpid/broker/SemanticState.cpp
+++ b/cpp/src/qpid/broker/SemanticState.cpp
@@ -540,14 +540,10 @@ void SemanticState::ConsumerImpl::stop()
}
Queue::shared_ptr SemanticState::getQueue(const string& name) const {
- //Note: this can be removed soon as the default queue for sessions is scrapped in 0-10
Queue::shared_ptr queue;
if (name.empty()) {
- queue = getDefaultQueue();
- if (!queue)
- throw NotAllowedException(QPID_MSG("No queue name specified."));
- }
- else {
+ throw NotAllowedException(QPID_MSG("No queue name specified."));
+ } else {
queue = session.getBroker().getQueues().find(name);
if (!queue)
throw NotFoundException(QPID_MSG("Queue not found: "<<name));