Delete BlazeServer::Disconnect
Unused, looks like it's been that way for 3 years. If we wind up needing it
again we can fix forward.
@@ -174,11 +174,6 @@ class BlazeServer final {
// this object will be in connected state.
bool Connect();
- // Disconnects from an existing server. Only call this when this object is in
- // connected state. After this call returns, the object will be in connected
- // state.
- void Disconnect();
-
// Send the command line to the server and forward whatever it says to stdout
// and stderr. Returns the desired exit code. Only call this when the server
// is in connected state.
@@ -1840,15 +1835,6 @@ unsigned int BlazeServer::Communicate() {
: final_response.exit_code();
}
-void BlazeServer::Disconnect() {
- assert(connected_);
-
- client_.reset();
- request_cookie_ = "";
- response_cookie_ = "";
- connected_ = false;
-}
-
void BlazeServer::SendAction(CancelThreadAction action) {
char msg = action;
if (!pipe_->Send(&msg, 1)) {
