Skip to content

Commit 2278e8c

Browse files
committed
fix: remove unused gitBlob method
1 parent f2308c6 commit 2278e8c

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

src/main/java/org/apache/commons/build/internal/GitUtils.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,6 @@ public static String gitTree(Path path) throws IOException {
4646
return Hex.encodeHexString(DigestUtils.gitTree(digest, path));
4747
}
4848

49-
/**
50-
* Returns the Git blob hash for the given file.
51-
*
52-
* @param path A regular file path.
53-
* @return A hex-encoded SHA-1 blob hash.
54-
* @throws IOException If the path is not a regular file or an I/O error occurs.
55-
*/
56-
public static String gitBlob(Path path) throws IOException {
57-
if (!Files.isRegularFile(path)) {
58-
throw new IOException("Path is not a regular file: " + path);
59-
}
60-
MessageDigest digest = DigestUtils.getSha1Digest();
61-
return Hex.encodeHexString(DigestUtils.gitBlob(digest, path));
62-
}
63-
6449
/**
6550
* Converts an SCM URI to a download URI suffixed with the current branch name.
6651
*

0 commit comments

Comments
 (0)