Skip to content

Commit

Permalink
android: deleted unused code leftover in AndroidChannelBuilder test. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
voidzcy committed Aug 28, 2019
1 parent d507ea7 commit 1e475be
Showing 1 changed file with 0 additions and 96 deletions.
Expand Up @@ -32,13 +32,7 @@
import io.grpc.ManagedChannel;
import io.grpc.MethodDescriptor;
import io.grpc.okhttp.OkHttpChannelBuilder;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import org.junit.Before;
import org.junit.Test;
Expand Down Expand Up @@ -388,94 +382,4 @@ public void enterIdle() {
enterIdleCount++;
}
}

private static class ScheduledExecutorImpl implements ScheduledExecutorService {
@Override
public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) {
throw new UnsupportedOperationException();
}

@Override
public ScheduledFuture<?> schedule(Runnable cmd, long delay, TimeUnit unit) {
throw new UnsupportedOperationException();
}

@Override
public ScheduledFuture<?> scheduleAtFixedRate(
Runnable command, long initialDelay, long period, TimeUnit unit) {
throw new UnsupportedOperationException();
}

@Override
public ScheduledFuture<?> scheduleWithFixedDelay(
Runnable command, long initialDelay, long delay, TimeUnit unit) {
throw new UnsupportedOperationException();
}

@Override
public boolean awaitTermination(long timeout, TimeUnit unit) {
throw new UnsupportedOperationException();
}

@Override
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) {
throw new UnsupportedOperationException();
}

@Override
public <T> List<Future<T>> invokeAll(
Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) {
throw new UnsupportedOperationException();
}

@Override
public <T> T invokeAny(Collection<? extends Callable<T>> tasks) {
throw new UnsupportedOperationException();
}

@Override
public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) {
throw new UnsupportedOperationException();
}

@Override
public boolean isShutdown() {
throw new UnsupportedOperationException();
}

@Override
public boolean isTerminated() {
throw new UnsupportedOperationException();
}

@Override
public void shutdown() {
throw new UnsupportedOperationException();
}

@Override
public List<Runnable> shutdownNow() {
throw new UnsupportedOperationException();
}

@Override
public <T> Future<T> submit(Callable<T> task) {
throw new UnsupportedOperationException();
}

@Override
public Future<?> submit(Runnable task) {
throw new UnsupportedOperationException();
}

@Override
public <T> Future<T> submit(Runnable task, T result) {
throw new UnsupportedOperationException();
}

@Override
public void execute(Runnable command) {
throw new UnsupportedOperationException();
}
}
}

0 comments on commit 1e475be

Please sign in to comment.