Browse Source

DfsPackFile: Remove unused parameter from loadReverseIdx method

Change-Id: I2373084c8b40ebd6f432806dddc8633a76938e80
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
next
David Pursehouse 5 years ago committed by Thomas Wolf
parent
commit
bca00aa5f4
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java

4
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java

@ -261,7 +261,7 @@ public final class DfsPackFile extends BlockBasedFile {
DfsBlockCache.Ref<PackReverseIndex> revref = cache.getOrLoadRef( DfsBlockCache.Ref<PackReverseIndex> revref = cache.getOrLoadRef(
revKey, revKey,
REF_POSITION, REF_POSITION,
() -> loadReverseIdx(ctx, revKey, idx)); () -> loadReverseIdx(revKey, idx));
PackReverseIndex revidx = revref.get(); PackReverseIndex revidx = revref.get();
if (reverseIndex == null && revidx != null) { if (reverseIndex == null && revidx != null) {
reverseIndex = revidx; reverseIndex = revidx;
@ -1057,7 +1057,7 @@ public final class DfsPackFile extends BlockBasedFile {
} }
private DfsBlockCache.Ref<PackReverseIndex> loadReverseIdx( private DfsBlockCache.Ref<PackReverseIndex> loadReverseIdx(
DfsReader ctx, DfsStreamKey revKey, PackIndex idx) { DfsStreamKey revKey, PackIndex idx) {
PackReverseIndex revidx = new PackReverseIndex(idx); PackReverseIndex revidx = new PackReverseIndex(idx);
reverseIndex = revidx; reverseIndex = revidx;
return new DfsBlockCache.Ref<>( return new DfsBlockCache.Ref<>(

Loading…
Cancel
Save