From 59a96151f1e0111718f8ad6ace7de0e709a73a80 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Mon, 10 Jun 2013 19:46:59 +0000 Subject: QPID-4905: Remove unused Connection ErrorListener interface - was only used by removed cluster support git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1491584 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/ConnectionHandler.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'cpp/src/qpid/broker/ConnectionHandler.cpp') diff --git a/cpp/src/qpid/broker/ConnectionHandler.cpp b/cpp/src/qpid/broker/ConnectionHandler.cpp index 68061e2924..e86dcdb086 100644 --- a/cpp/src/qpid/broker/ConnectionHandler.cpp +++ b/cpp/src/qpid/broker/ConnectionHandler.cpp @@ -86,7 +86,6 @@ bool ConnectionHandler::handle(const framing::AMQMethodBody& method) void ConnectionHandler::handle(framing::AMQFrame& frame) { AMQMethodBody* method=frame.getBody()->getMethod(); - Connection::ErrorListener* errorListener = handler->connection.getErrorListener(); try{ if (method && handle(*method)) { // This is a connection control frame, nothing more to do. @@ -98,10 +97,8 @@ void ConnectionHandler::handle(framing::AMQFrame& frame) "Connection not yet open, invalid frame received."); } }catch(ConnectionException& e){ - if (errorListener) errorListener->connectionError(e.what()); handler->proxy.close(e.code, e.what()); }catch(std::exception& e){ - if (errorListener) errorListener->connectionError(e.what()); handler->proxy.close(541/*internal error*/, e.what()); } } -- cgit v1.2.1