diff --git a/src/test/java/com/google/devtools/build/lib/worker/ExampleWorkerProtocol.java b/src/test/java/com/google/devtools/build/lib/worker/ExampleWorkerProtocol.java index 34dd168b2e798a..80fb5b51e48b59 100644 --- a/src/test/java/com/google/devtools/build/lib/worker/ExampleWorkerProtocol.java +++ b/src/test/java/com/google/devtools/build/lib/worker/ExampleWorkerProtocol.java @@ -13,15 +13,4 @@ // limitations under the License. package com.google.devtools.build.lib.worker; -import com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest; -import com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse; -import java.io.IOException; -/** Example protocol for workers. */ -public interface ExampleWorkerProtocol extends AutoCloseable { - /** Reads a work request written to the worker's stdin. */ - WorkRequest readRequest() throws IOException; - - /** Writes a work response to the worker's stdout. */ - void writeResponse(WorkResponse workResponse) throws IOException; -} diff --git a/src/test/java/com/google/devtools/build/lib/worker/SandboxHelper.java b/src/test/java/com/google/devtools/build/lib/worker/SandboxHelper.java index e5f5fe5f51d744..745e59b90c71c4 100644 --- a/src/test/java/com/google/devtools/build/lib/worker/SandboxHelper.java +++ b/src/test/java/com/google/devtools/build/lib/worker/SandboxHelper.java @@ -191,22 +191,6 @@ public SandboxHelper createSymlink(String relativePath, String relativeDestinati return this; } - /** - * Creates a symlink from within the the {@code workDir}, and creates the target file with the - * given contents, which is assumed to be ASCII text. The destination is just what's written into - * the symlink and thus relative to the created symlink. - */ - @CanIgnoreReturnValue - public SandboxHelper createSymlinkWithContents( - String relativePath, String relativeDestination, String contents) throws IOException { - createSymlink(relativePath, relativeDestination); - Path fromPath = workDir.getRelative(relativePath); - Path toPath = fromPath.getRelative(relativeDestination); - toPath.getParentDirectory().createDirectoryAndParents(); - FileSystemUtils.writeContentAsLatin1(toPath, contents); - return this; - } - public SandboxInputs getSandboxInputs() { return new SandboxInputs(inputs, virtualInputs, symlinks, ImmutableMap.of()); }