diff options
| author | Alan Conway <aconway@apache.org> | 2007-08-14 16:15:26 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-08-14 16:15:26 +0000 |
| commit | cb65298edd497295d215220397f8fedff7b14aca (patch) | |
| tree | 9f3a167ef11b0f3bd918507767fbf455d362d79d /cpp/src/qpid/broker/SemanticHandler.cpp | |
| parent | b3ddadd9b15088afecf1f9774d2004258b164258 (diff) | |
| download | qpid-python-cb65298edd497295d215220397f8fedff7b14aca.tar.gz | |
Removed unused types: RequestId, ResponseId, MethodContext.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@565821 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SemanticHandler.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/SemanticHandler.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/cpp/src/qpid/broker/SemanticHandler.cpp b/cpp/src/qpid/broker/SemanticHandler.cpp index fd0a5cfbe1..6ef2162a4a 100644 --- a/cpp/src/qpid/broker/SemanticHandler.cpp +++ b/cpp/src/qpid/broker/SemanticHandler.cpp @@ -60,13 +60,12 @@ void SemanticHandler::handle(framing::AMQFrame& frame) } //ChannelAdapter virtual methods: -void SemanticHandler::handleMethodInContext(boost::shared_ptr<qpid::framing::AMQMethodBody> method, - const qpid::framing::MethodContext& context) +void SemanticHandler::handleMethod(boost::shared_ptr<qpid::framing::AMQMethodBody> method) { try { if (!method->invoke(this)) { //else do the usual: - handleL4(method, context); + handleL4(method); //(if the frameset is complete) we can move the execution-mark //forward @@ -113,8 +112,7 @@ void SemanticHandler::flush() } } -void SemanticHandler::handleL4(boost::shared_ptr<qpid::framing::AMQMethodBody> method, - const qpid::framing::MethodContext& context) +void SemanticHandler::handleL4(boost::shared_ptr<qpid::framing::AMQMethodBody> method) { try{ if(getId() != 0 && !method->isA<ChannelOpenBody>() && !isOpen()) { @@ -124,7 +122,7 @@ void SemanticHandler::handleL4(boost::shared_ptr<qpid::framing::AMQMethodBody> m throw ConnectionException(504, out.str()); } } else { - method->invoke(*adapter, context); + method->invoke(*adapter); } }catch(const ChannelException& e){ adapter->getProxy().getChannel().close( @@ -171,7 +169,7 @@ void SemanticHandler::redeliver(Message::shared_ptr& msg, DeliveryToken::shared_ msg->deliver(*this, tag, token, connection.getFrameMax()); } -RequestId SemanticHandler::send(shared_ptr<AMQBody> body) +void SemanticHandler::send(shared_ptr<AMQBody> body) { Mutex::ScopedLock l(outLock); uint8_t type(body->type()); @@ -182,5 +180,5 @@ RequestId SemanticHandler::send(shared_ptr<AMQBody> body) //std::cout << "[" << this << "] allocated: " << outgoing.hwm.getValue() << " to " << *body << std::endl; } } - return ChannelAdapter::send(body); + ChannelAdapter::send(body); } |
