From 82d16f290a540aedc56799b0a7280661358632e1 Mon Sep 17 00:00:00 2001 From: janakr Date: Mon, 7 Mar 2022 09:01:30 -0800 Subject: [PATCH] Clean up OutputService#isRemoteFile, dead since https://github.com/bazelbuild/bazel/commit/ff64da82ceca86fca0c971c36041340bdf166010. PiperOrigin-RevId: 432958037 --- .../devtools/build/lib/remote/RemoteOutputService.java | 8 -------- .../com/google/devtools/build/lib/vfs/OutputService.java | 3 --- 2 files changed, 11 deletions(-) diff --git a/src/main/java/com/google/devtools/build/lib/remote/RemoteOutputService.java b/src/main/java/com/google/devtools/build/lib/remote/RemoteOutputService.java index 4bdf23aa4c245e..b4dbebf1240764 100644 --- a/src/main/java/com/google/devtools/build/lib/remote/RemoteOutputService.java +++ b/src/main/java/com/google/devtools/build/lib/remote/RemoteOutputService.java @@ -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; @@ -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; diff --git a/src/main/java/com/google/devtools/build/lib/vfs/OutputService.java b/src/main/java/com/google/devtools/build/lib/vfs/OutputService.java index 5155be85a4dc66..7364074f7e53fc 100644 --- a/src/main/java/com/google/devtools/build/lib/vfs/OutputService.java +++ b/src/main/java/com/google/devtools/build/lib/vfs/OutputService.java @@ -141,9 +141,6 @@ void createSymlinkTree(Map 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; }