Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse2016-02-15 05:57:39 +0000
committerDavid Pursehouse2016-02-15 05:57:39 +0000
commitf04bd20fc658365fcf24086ea26beaf3ff5f1ada (patch)
tree7fa21f30b27e9ca2f19a75dc28c8bfdee2dc121b
parent217760fee5c8f40ad52b2f07e89a1a14b30f1cbd (diff)
downloadjgit-f04bd20fc658365fcf24086ea26beaf3ff5f1ada.tar.gz
jgit-f04bd20fc658365fcf24086ea26beaf3ff5f1ada.tar.xz
jgit-f04bd20fc658365fcf24086ea26beaf3ff5f1ada.zip
InMemoryRepository: Remove unused RevWalk from batch method signature
The RevWalk given in the arguments is not used. According to the comment at the top of the method, a new RevWalk is intentionally used in the implementation. Remove the unused argument. Change-Id: Iec81a1341d5bf377801475845b96a465753096ef Signed-off-by: David Pursehouse <david.pursehouse@sonymobile.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java
index 5e246b47b4..b312835bb3 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java
@@ -274,7 +274,7 @@ public class InMemoryRepository extends DfsRepository {
if (performsAtomicTransactions()) {
try {
lock.writeLock().lock();
- batch(walk, getCommands());
+ batch(getCommands());
} finally {
lock.writeLock().unlock();
}
@@ -304,7 +304,7 @@ public class InMemoryRepository extends DfsRepository {
return new RefCache(ids.toRefList(), sym.toRefList());
}
- private void batch(RevWalk walk, List<ReceiveCommand> cmds) {
+ private void batch(List<ReceiveCommand> cmds) {
// Validate that the target exists in a new RevWalk, as the RevWalk
// from the RefUpdate might be reading back unflushed objects.
Map<ObjectId, ObjectId> peeled = new HashMap<>();

Back to the top