Browse Source

Merge "Remove unused variable from DfsBlockCache"

stable-4.3
Terry Parker 9 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
f321741cff
  1. 8
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java

8
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java

@ -185,14 +185,6 @@ public final class DfsBlockCache {
for (int i = 0; i < loadLocks.length; i++) for (int i = 0; i < loadLocks.length; i++)
loadLocks[i] = new ReentrantLock(true /* fair */); loadLocks[i] = new ReentrantLock(true /* fair */);
int eb = (int) (tableSize * .1);
if (64 < eb)
eb = 64;
else if (eb < 4)
eb = 4;
if (tableSize < eb)
eb = tableSize;
maxBytes = cfg.getBlockLimit(); maxBytes = cfg.getBlockLimit();
maxStreamThroughCache = (long) (maxBytes * cfg.getStreamRatio()); maxStreamThroughCache = (long) (maxBytes * cfg.getStreamRatio());
blockSize = cfg.getBlockSize(); blockSize = cfg.getBlockSize();

Loading…
Cancel
Save