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

Remove the fd overload of AsyncServerSocket::useExistingSockets

Summary: Remove all uses and remove the overload.

Reviewed By: yfeldblum

Differential Revision: D14194039

fbshipit-source-id: c3b271747200b9219b734e5a0f19c6d5d4d135a2
parent 8fc76076
......@@ -303,16 +303,6 @@ class AsyncServerSocket : public DelayedDestruction, public AsyncSocketBase {
useExistingSocket(NetworkSocket::fromFd(fd));
}
void useExistingSocket(NetworkSocket fd);
void useExistingSockets(const std::vector<int>& fds) {
// This isn't a big enough perf impact to matter, as it's only really used
// for long-lived servers :)
std::vector<NetworkSocket> socks;
socks.reserve(fds.size());
for (size_t i = 0; i < fds.size(); ++i) {
socks.push_back(NetworkSocket::fromFd(fds[i]));
}
useExistingSockets(socks);
}
void useExistingSockets(const std::vector<NetworkSocket>& fds);
/**
......
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