summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src
diff options
context:
space:
mode:
authorChris Aniszczyk <caniszczyk@gmail.com>2010-12-06 10:10:26 -0500
committerCode Review <codereview-daemon@eclipse.org>2010-12-06 10:10:26 -0500
commit35d51d040cd4cd851a4efc404e10b0304ed95d14 (patch)
tree82c9e30bed0af47343208378a5885895ed015304 /org.eclipse.jgit/src
parent643de8323affa1477fd3208ba9670b1a83664c04 (diff)
parent807ee4797fff512ad491edf0b85dba7e1a9641bf (diff)
downloadjgit-35d51d040cd4cd851a4efc404e10b0304ed95d14.tar.gz
jgit-35d51d040cd4cd851a4efc404e10b0304ed95d14.zip
Merge "Remove unused getTreeId from TreeFormatter"
Diffstat (limited to 'org.eclipse.jgit/src')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/TreeFormatter.java19
1 files changed, 0 insertions, 19 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/TreeFormatter.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/TreeFormatter.java
index e14e81f6e0..1b2627e01b 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/TreeFormatter.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/TreeFormatter.java
@@ -271,25 +271,6 @@ public class TreeFormatter {
}
/**
- * Compute the current tree's ObjectId.
- *
- * @return computed ObjectId of the tree
- */
- public ObjectId getTreeId() {
- final ObjectInserter.Formatter fmt = new ObjectInserter.Formatter();
- if (buf != null)
- return fmt.idFor(OBJ_TREE, buf, 0, ptr);
-
- try {
- final long len = overflowBuffer.length();
- return fmt.idFor(OBJ_TREE, len, overflowBuffer.openInputStream());
- } catch (IOException err) {
- // This should never happen, its read failure on a byte array.
- throw new RuntimeException(err);
- }
- }
-
- /**
* Insert this tree and obtain its ObjectId.
*
* @param ins