mirror of https://github.com/grpc/grpc-java.git
Merge pull request #884 from nmittler/unused_method
Removing unused method in ServerImpl
This commit is contained in:
commit
fc13535a8b
|
|
@ -83,7 +83,6 @@ public final class ServerImpl extends Server {
|
|||
private boolean started;
|
||||
private boolean shutdown;
|
||||
private boolean terminated;
|
||||
private Runnable terminationRunnable;
|
||||
/** Service encapsulating something similar to an accept() socket. */
|
||||
private final io.grpc.internal.Server transportServer;
|
||||
private final Object lock = new Object();
|
||||
|
|
@ -106,14 +105,6 @@ public final class ServerImpl extends Server {
|
|||
this.transportServer = Preconditions.checkNotNull(transportServer, "transportServer");
|
||||
}
|
||||
|
||||
/** Hack to allow executors to auto-shutdown. Not for general use. */
|
||||
// TODO(ejona86): Replace with a real API.
|
||||
void setTerminationRunnable(Runnable runnable) {
|
||||
synchronized (lock) {
|
||||
this.terminationRunnable = runnable;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Bind and start the server.
|
||||
*
|
||||
|
|
@ -253,9 +244,6 @@ public final class ServerImpl extends Server {
|
|||
terminated = true;
|
||||
// TODO(carl-mastrangelo): move this outside the synchronized block.
|
||||
lock.notifyAll();
|
||||
if (terminationRunnable != null) {
|
||||
terminationRunnable.run();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue