Skip to content

Commit

Permalink
Automatic code cleanup.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 543351147
Change-Id: I79ae2ab1d5314b2e19e901dfec43fa6a2a56523f
  • Loading branch information
Googler authored and copybara-github committed Jun 26, 2023
1 parent 7f7017a commit 9081ca0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 9081ca0

Please sign in to comment.