]> source.dussan.org Git - jgit.git/commitdiff
Remove unused variable from DfsBlockCache 21/64921/2
authorTerry Parker <tparker@google.com>
Thu, 21 Jan 2016 21:00:45 +0000 (13:00 -0800)
committerTerry Parker <tparker@google.com>
Thu, 21 Jan 2016 21:02:39 +0000 (13:02 -0800)
Change-Id: I8ea167e44e9ebcac7ca08920e806d8bcb8188bf0
Signed-off-by: Terry Parker <tparker@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java

index 2e170a5d0f7299eb4083fcd95e40a6d48b6626d7..ecd4b23c25ccc1b0f18cc34f90046a599c8da57a 100644 (file)
@@ -185,14 +185,6 @@ public final class DfsBlockCache {
                for (int i = 0; i < loadLocks.length; i++)
                        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();
                maxStreamThroughCache = (long) (maxBytes * cfg.getStreamRatio());
                blockSize = cfg.getBlockSize();