From 1282f525084cb60f672f8a2e02e01fa0ce6c62ff Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Thu, 20 Dec 2012 23:42:57 +0000 Subject: NO-JIRA: Removed some unused Broker code git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1424761 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/broker/Broker.cpp | 15 ++------------- qpid/cpp/src/qpid/broker/Broker.h | 10 +--------- 2 files changed, 3 insertions(+), 22 deletions(-) (limited to 'qpid/cpp') diff --git a/qpid/cpp/src/qpid/broker/Broker.cpp b/qpid/cpp/src/qpid/broker/Broker.cpp index 18618ee005..15382ae80d 100644 --- a/qpid/cpp/src/qpid/broker/Broker.cpp +++ b/qpid/cpp/src/qpid/broker/Broker.cpp @@ -1010,24 +1010,13 @@ void Broker::accept() { void Broker::connect( const std::string& host, const std::string& port, const std::string& transport, - boost::function2 failed, - sys::ConnectionCodec::Factory* f) + boost::function2 failed) { boost::shared_ptr pf = getProtocolFactory(transport); - if (pf) pf->connect(poller, host, port, f ? f : factory.get(), failed); + if (pf) pf->connect(poller, host, port, factory.get(), failed); else throw NoSuchTransportException(QPID_MSG("Unsupported transport type: " << transport)); } -void Broker::connect( - const Url& url, - boost::function2 failed, - sys::ConnectionCodec::Factory* f) -{ - url.throwIfEmpty(); - const Address& addr=url[0]; - connect(addr.host, boost::lexical_cast(addr.port), addr.protocol, failed, f); -} - uint32_t Broker::queueMoveMessages( const std::string& srcQueue, const std::string& destQueue, diff --git a/qpid/cpp/src/qpid/broker/Broker.h b/qpid/cpp/src/qpid/broker/Broker.h index d2b946f71b..9a5204dbf6 100644 --- a/qpid/cpp/src/qpid/broker/Broker.h +++ b/qpid/cpp/src/qpid/broker/Broker.h @@ -247,12 +247,7 @@ class Broker : public sys::Runnable, public Plugin::Target, /** Create a connection to another broker. */ void connect(const std::string& host, const std::string& port, const std::string& transport, - boost::function2 failed, - sys::ConnectionCodec::Factory* =0); - /** Create a connection to another broker. */ - void connect(const Url& url, - boost::function2 failed, - sys::ConnectionCodec::Factory* =0); + boost::function2 failed); /** Move messages from one queue to another. A zero quantity means to move all messages @@ -269,9 +264,6 @@ class Broker : public sys::Runnable, public Plugin::Target, /** Expose poller so plugins can register their descriptors. */ QPID_BROKER_EXTERN boost::shared_ptr getPoller(); - boost::shared_ptr getConnectionFactory() { return factory; } - void setConnectionFactory(boost::shared_ptr f) { factory = f; } - /** Timer for local tasks affecting only this broker */ sys::Timer& getTimer() { return timer; } -- cgit v1.2.1