Commit 88c2fecb authored by Orvid King's avatar Orvid King Committed by Facebook Github Bot

Remove the fd overloads of AsyncSocket get & detach fd

Summary: They are dead.

Reviewed By: yfeldblum

Differential Revision: D14191874

fbshipit-source-id: 80e6b9c51aa7d29ccc01148ccb1fd1014688c764
parent 29ec891c
...@@ -339,10 +339,6 @@ class AsyncSocket : virtual public AsyncTransportWrapper { ...@@ -339,10 +339,6 @@ class AsyncSocket : virtual public AsyncTransportWrapper {
/** /**
* Get the network socket used by the AsyncSocket. * Get the network socket used by the AsyncSocket.
*/ */
virtual int getFd(int /*breakAllTheThings*/) const {
return -1;
}
virtual NetworkSocket getNetworkSocket() const { virtual NetworkSocket getNetworkSocket() const {
return fd_; return fd_;
} }
...@@ -361,10 +357,6 @@ class AsyncSocket : virtual public AsyncTransportWrapper { ...@@ -361,10 +357,6 @@ class AsyncSocket : virtual public AsyncTransportWrapper {
* Returns the file descriptor. The caller assumes ownership of the * Returns the file descriptor. The caller assumes ownership of the
* descriptor, and it will not be closed when the AsyncSocket is destroyed. * descriptor, and it will not be closed when the AsyncSocket is destroyed.
*/ */
virtual int detachFd(int) {
return detachNetworkSocket().toFd();
}
virtual NetworkSocket detachNetworkSocket(); virtual NetworkSocket detachNetworkSocket();
/** /**
......
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