From dd9f60e4d2721cdfd3044a8c8a1bdfd8e444009c Mon Sep 17 00:00:00 2001 From: ccalvarin Date: Mon, 23 Jul 2018 18:16:18 -0700 Subject: 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 --- src/main/java/com/google/devtools/build/lib/vfs/Path.java | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib/vfs/Path.java') 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 @@ -824,17 +824,6 @@ public class Path return hasher.hash().toString(); } - /** - * 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. -- cgit v1.2.3