Delete the old ClientCall.cancel().

It's deprecated since 0.14.0.
This commit is contained in:
Kun Zhang 2016-06-17 09:54:02 -07:00
parent def237d960
commit 11a314e31a
2 changed files with 0 additions and 17 deletions

View File

@ -159,17 +159,6 @@ public abstract class ClientCall<ReqT, RespT> {
*/
public abstract void request(int numMessages);
/**
* Equivalent as {@link #cancel(String, Throwable)} without passing any useful information.
*
* @deprecated Use or override {@link #cancel(String, Throwable)} instead. See
* https://github.com/grpc/grpc-java/issues/1221
*/
@Deprecated
public void cancel() {
cancel("Cancelled by ClientCall.cancel()", null);
}
/**
* Prevent any further processing for this {@code ClientCall}. No further messages may be sent or
* will be received. The server is informed of cancellations, but may not stop processing the

View File

@ -52,12 +52,6 @@ public abstract class ForwardingClientCall<ReqT, RespT> extends ClientCall<ReqT,
delegate().request(numMessages);
}
@Deprecated
@Override
public void cancel() {
delegate().cancel();
}
@Override
public void cancel(@Nullable String message, @Nullable Throwable cause) {
delegate().cancel(message, cause);