Skip to content

Commit

Permalink
Clean up OutputService#isRemoteFile, dead since ff64da8.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 432958037
  • Loading branch information
janakdr authored and copybara-github committed Mar 7, 2022
1 parent 9491df0 commit 82d16f2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import com.google.devtools.build.lib.vfs.FileSystem;
import com.google.devtools.build.lib.vfs.ModifiedFileSet;
import com.google.devtools.build.lib.vfs.OutputService;
import com.google.devtools.build.lib.vfs.Path;
import com.google.devtools.build.lib.vfs.PathFragment;
import com.google.devtools.build.lib.vfs.Root;
import java.util.Map;
Expand Down Expand Up @@ -114,13 +113,6 @@ public void clean() {
// Intentionally left empty.
}

@Override
public boolean isRemoteFile(Artifact artifact) {
Path path = artifact.getPath();
return path.getFileSystem() instanceof RemoteActionFileSystem
&& ((RemoteActionFileSystem) path.getFileSystem()).isRemote(path);
}

@Override
public boolean supportsPathResolverForArtifactValues() {
return actionFileSystemType() != ActionFileSystemType.DISABLED;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,6 @@ void createSymlinkTree(Map<PathFragment, PathFragment> symlinks, PathFragment sy
*/
void clean() throws ExecException, InterruptedException;

/** @return true iff the file actually lives on a remote server */
boolean isRemoteFile(Artifact file);

default ActionFileSystemType actionFileSystemType() {
return ActionFileSystemType.DISABLED;
}
Expand Down

0 comments on commit 82d16f2

Please sign in to comment.