aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/vfs/Path.java
diff options
context:
space:
mode:
authorGravatar ccalvarin <ccalvarin@google.com>2018-07-23 18:16:18 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-07-23 18:18:36 -0700
commitdd9f60e4d2721cdfd3044a8c8a1bdfd8e444009c (patch)
tree40d209283f1aec518fc57d7c07001a13bbabe1e3 /src/main/java/com/google/devtools/build/lib/vfs/Path.java
parent69301af7fdf8be97627bddeb33224289ebe4de93 (diff)
Remove redundancy in DigestHashFunction use in FileSystem.
Each FileSystem instance has a digest function, but the getDigest and getHashDigest functions also accepted their own custom parameter functions. We only support 1 hash per filesystem instance, these parameters are redundant. RELNOTES: None. PiperOrigin-RevId: 205758571
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/vfs/Path.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/vfs/Path.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/vfs/Path.java b/src/main/java/com/google/devtools/build/lib/vfs/Path.java
index 7629f6cf1b..497b0bbd5d 100644
--- a/src/main/java/com/google/devtools/build/lib/vfs/Path.java
+++ b/src/main/java/com/google/devtools/build/lib/vfs/Path.java
@@ -825,17 +825,6 @@ public class Path
}
/**
- * Returns the digest of the file denoted by the current path and digest function, following
- * symbolic links.
- *
- * @return a new byte array containing the file's digest
- * @throws IOException if the digest could not be computed for any reason
- */
- public byte[] getDigest(DigestHashFunction hashFunction) throws IOException {
- return fileSystem.getDigest(this, hashFunction);
- }
-
- /**
* Opens the file denoted by this path, following symbolic links, for reading, and returns an
* input stream to it.
*