Commit d11cbbc9 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

Dead Code: TAsyncSocket

Summary: [Thrift] Dead Code: `TAsyncSocket`.

Reviewed By: vitaut

Differential Revision: D20851837

fbshipit-source-id: d4279fb1ab712f338d399220df26d56c4ab7076a
parent da13f8bc
...@@ -72,7 +72,7 @@ class AsyncSSLSocketConnector; ...@@ -72,7 +72,7 @@ class AsyncSSLSocketConnector;
* want to give up if the remote end stops responding and no further * want to give up if the remote end stops responding and no further
* progress can be made sending the data. * progress can be made sending the data.
*/ */
class AsyncSSLSocket : public virtual AsyncSocket { class AsyncSSLSocket : public AsyncSocket {
public: public:
typedef std::unique_ptr<AsyncSSLSocket, Destructor> UniquePtr; typedef std::unique_ptr<AsyncSSLSocket, Destructor> UniquePtr;
using X509_deleter = folly::static_function_deleter<X509, &X509_free>; using X509_deleter = folly::static_function_deleter<X509, &X509_free>;
......
...@@ -2340,7 +2340,7 @@ class MockAsyncTFOSSLSocket : public AsyncSSLSocket { ...@@ -2340,7 +2340,7 @@ class MockAsyncTFOSSLSocket : public AsyncSSLSocket {
explicit MockAsyncTFOSSLSocket( explicit MockAsyncTFOSSLSocket(
std::shared_ptr<folly::SSLContext> sslCtx, std::shared_ptr<folly::SSLContext> sslCtx,
EventBase* evb) EventBase* evb)
: AsyncSocket(evb), AsyncSSLSocket(sslCtx, evb) {} : AsyncSSLSocket(sslCtx, evb) {}
MOCK_METHOD3( MOCK_METHOD3(
tfoSendMsg, tfoSendMsg,
......
...@@ -43,7 +43,7 @@ class MockAsyncSSLSocket : public AsyncSSLSocket { ...@@ -43,7 +43,7 @@ class MockAsyncSSLSocket : public AsyncSSLSocket {
// Fake constructor sets the state to established without call to connect // Fake constructor sets the state to established without call to connect
// or accept // or accept
MockAsyncSSLSocket(const std::shared_ptr<SSLContext>& ctx, EventBase* evb) MockAsyncSSLSocket(const std::shared_ptr<SSLContext>& ctx, EventBase* evb)
: AsyncSocket(evb), AsyncSSLSocket(ctx, evb) { : AsyncSSLSocket(ctx, evb) {
state_ = AsyncSocket::StateEnum::ESTABLISHED; state_ = AsyncSocket::StateEnum::ESTABLISHED;
sslState_ = AsyncSSLSocket::SSLStateEnum::STATE_ESTABLISHED; sslState_ = AsyncSSLSocket::SSLStateEnum::STATE_ESTABLISHED;
} }
......
...@@ -28,8 +28,7 @@ class MockAsyncSSLSocket : public AsyncSSLSocket { ...@@ -28,8 +28,7 @@ class MockAsyncSSLSocket : public AsyncSSLSocket {
const std::shared_ptr<SSLContext>& ctx, const std::shared_ptr<SSLContext>& ctx,
EventBase* base, EventBase* base,
bool deferSecurityNegotiation = false) bool deferSecurityNegotiation = false)
: AsyncSocket(base), : AsyncSSLSocket(ctx, base, deferSecurityNegotiation) {}
AsyncSSLSocket(ctx, base, deferSecurityNegotiation) {}
MOCK_METHOD5( MOCK_METHOD5(
connect_, connect_,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment