mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Remove unused NetworkProxyClient::ConnectHandler
PiperOrigin-RevId: 563750900 Change-Id: Ib848aab0520032dbdcc879cb11861b133e26c4c6
This commit is contained in:
parent
f614862e07
commit
77f62ccb1f
|
@ -29,16 +29,6 @@
|
|||
|
||||
namespace sandbox2 {
|
||||
|
||||
int NetworkProxyClient::ConnectHandler(int sockfd, const struct sockaddr* addr,
|
||||
socklen_t addrlen) {
|
||||
absl::Status status = Connect(sockfd, addr, addrlen);
|
||||
if (status.ok()) {
|
||||
return 0;
|
||||
}
|
||||
LOG(ERROR) << "ConnectHandler() failed: " << status.message();
|
||||
return -1;
|
||||
}
|
||||
|
||||
absl::Status NetworkProxyClient::Connect(int sockfd,
|
||||
const struct sockaddr* addr,
|
||||
socklen_t addrlen) {
|
||||
|
|
|
@ -40,10 +40,6 @@ class NetworkProxyClient {
|
|||
// back a connected socket.
|
||||
absl::Status Connect(int sockfd, const struct sockaddr* addr,
|
||||
socklen_t addrlen);
|
||||
// Same as Connect, but with same API as regular connect() call.
|
||||
int ConnectHandler(int sockfd, const struct sockaddr* addr,
|
||||
socklen_t addrlen);
|
||||
|
||||
private:
|
||||
Comms comms_;
|
||||
absl::Status ReceiveRemoteResult();
|
||||
|
|
Loading…
Reference in New Issue
Block a user