Merge pull request #884 from nmittler/unused_method

Removing unused method in ServerImpl
This commit is contained in:
Nathan Mittler 2015-08-27 11:24:04 -07:00
commit fc13535a8b
1 changed files with 0 additions and 12 deletions

View File

@ -83,7 +83,6 @@ public final class ServerImpl extends Server {
private boolean started; private boolean started;
private boolean shutdown; private boolean shutdown;
private boolean terminated; private boolean terminated;
private Runnable terminationRunnable;
/** Service encapsulating something similar to an accept() socket. */ /** Service encapsulating something similar to an accept() socket. */
private final io.grpc.internal.Server transportServer; private final io.grpc.internal.Server transportServer;
private final Object lock = new Object(); private final Object lock = new Object();
@ -106,14 +105,6 @@ public final class ServerImpl extends Server {
this.transportServer = Preconditions.checkNotNull(transportServer, "transportServer"); 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. * Bind and start the server.
* *
@ -253,9 +244,6 @@ public final class ServerImpl extends Server {
terminated = true; terminated = true;
// TODO(carl-mastrangelo): move this outside the synchronized block. // TODO(carl-mastrangelo): move this outside the synchronized block.
lock.notifyAll(); lock.notifyAll();
if (terminationRunnable != null) {
terminationRunnable.run();
}
} }
} }
} }