diff options
author | Dave Borowitz <dborowitz@google.com> | 2013-05-03 11:22:25 -0700 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org <gerrit@eclipse.org> | 2013-05-05 11:48:41 -0400 |
commit | b0326235e1188e1931a9429c60c59495e43bd740 (patch) | |
tree | 9a0059352656709cee67fae602ec29c26aede55c /org.eclipse.jgit/src | |
parent | a626f9fd66efa9653bf3292018a8dd3ac2be94e3 (diff) | |
download | jgit-b0326235e1188e1931a9429c60c59495e43bd740.tar.gz jgit-b0326235e1188e1931a9429c60c59495e43bd740.zip |
Remove unused repository field from RevWalk
The comment about legacy Tag and Object types no longer applies,
though prior to Idb273d5a92849b42935ac14eed73b796b80aad50 the field
was still being used by RewriteTreeFilter.
Change-Id: I9ee5da8f8a3b61c9cf543817c03117ee0609dd8f
Diffstat (limited to 'org.eclipse.jgit/src')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java index 8e07048e21..ca5f4fe616 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java @@ -163,9 +163,6 @@ public class RevWalk implements Iterable<RevCommit> { private static final int APP_FLAGS = -1 & ~((1 << RESERVED_FLAGS) - 1); - /** Exists <b>ONLY</b> to support legacy Tag and Commit objects. */ - final Repository repository; - final ObjectReader reader; final MutableObjectId idBuffer; @@ -203,7 +200,7 @@ public class RevWalk implements Iterable<RevCommit> { * released by the caller. */ public RevWalk(final Repository repo) { - this(repo, repo.newObjectReader()); + this(repo.newObjectReader()); } /** @@ -215,11 +212,6 @@ public class RevWalk implements Iterable<RevCommit> { * required. */ public RevWalk(ObjectReader or) { - this(null, or); - } - - private RevWalk(final Repository repo, final ObjectReader or) { - repository = repo; reader = or; idBuffer = new MutableObjectId(); objects = new ObjectIdOwnerMap<RevObject>(); |