summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src
diff options
context:
space:
mode:
authorMathias Kinzler <mathias.kinzler@sap.com>2011-03-17 07:07:15 -0400
committerCode Review <codereview-daemon@eclipse.org>2011-03-17 07:07:15 -0400
commit6e2e7280d02f4da25207ec7f54cca2cb32d8f075 (patch)
tree1b14af0dc0bd7172dfcb9a37877a6b8273218618 /org.eclipse.jgit/src
parentc0112f97a1509d9b87da46f7a2a28206e26c616c (diff)
parentef822fe3cd26c61f87a8fce6fb5ac5e7a71e6108 (diff)
downloadjgit-6e2e7280d02f4da25207ec7f54cca2cb32d8f075.tar.gz
jgit-6e2e7280d02f4da25207ec7f54cca2cb32d8f075.zip
Merge "Remove deprecated Repository.mapTree"
Diffstat (limited to 'org.eclipse.jgit/src')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java47
1 files changed, 0 insertions, 47 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
index 6916a86f4c..759ab3e3a2 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
@@ -271,53 +271,6 @@ public abstract class Repository {
}
/**
- * Access a Tree object using a symbolic reference. This reference may
- * be a SHA-1 or ref in combination with a number of symbols translating
- * from one ref or SHA1-1 to another, such as HEAD^{tree} etc.
- *
- * @param revstr a reference to a git commit object
- * @return a Tree named by the specified string
- * @throws IOException
- *
- * @see #resolve(String)
- * @deprecated Use {@link #resolve(String)} and pass its return value to
- * {@link org.eclipse.jgit.treewalk.TreeWalk#addTree(AnyObjectId)}.
- */
- @Deprecated
- public Tree mapTree(final String revstr) throws IOException {
- final ObjectId id = resolve(revstr);
- return id != null ? mapTree(id) : null;
- }
-
- /**
- * Access a Tree by SHA'1 id.
- * @param id
- * @return Tree or null
- * @throws IOException for I/O error or unexpected object type.
- * @deprecated Use {@link org.eclipse.jgit.treewalk.TreeWalk#addTree(AnyObjectId)}.
- */
- @Deprecated
- public Tree mapTree(final ObjectId id) throws IOException {
- final ObjectLoader or;
- try {
- or = open(id);
- } catch (MissingObjectException notFound) {
- return null;
- }
- final byte[] raw = or.getCachedBytes();
- switch (or.getType()) {
- case Constants.OBJ_TREE:
- return new Tree(this, id, raw);
-
- case Constants.OBJ_COMMIT:
- return mapTree(ObjectId.fromString(raw, 5));
-
- default:
- throw new IncorrectObjectTypeException(id, Constants.TYPE_TREE);
- }
- }
-
- /**
* Create a command to update, create or delete a ref in this repository.
*
* @param ref