From ea7c335332546708cc9eeed3c5e324dbe35f7ed9 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Wed, 29 Aug 2012 17:51:40 +0000 Subject: NO-JIRA: Remove obsolete and now unused code git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1378662 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/SslPlugin.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'cpp/src/qpid/sys/SslPlugin.cpp') diff --git a/cpp/src/qpid/sys/SslPlugin.cpp b/cpp/src/qpid/sys/SslPlugin.cpp index 069e97758e..5520320ef2 100644 --- a/cpp/src/qpid/sys/SslPlugin.cpp +++ b/cpp/src/qpid/sys/SslPlugin.cpp @@ -86,7 +86,6 @@ class SslProtocolFactoryTmpl : public ProtocolFactory { boost::function2 failed); uint16_t getPort() const; - bool supports(const std::string& capability); private: void established(Poller::shared_ptr, const Socket&, ConnectionCodec::Factory*, @@ -270,25 +269,4 @@ void SslProtocolFactoryTmpl::connect( failed); } -namespace -{ -const std::string SSL = "ssl"; -} - -template <> -bool SslProtocolFactory::supports(const std::string& capability) -{ - std::string s = capability; - transform(s.begin(), s.end(), s.begin(), tolower); - return s == SSL; -} - -template <> -bool SslMuxProtocolFactory::supports(const std::string& capability) -{ - std::string s = capability; - transform(s.begin(), s.end(), s.begin(), tolower); - return s == SSL || s == "tcp"; -} - }} // namespace qpid::sys -- cgit v1.2.1