提交 3447a60b authored 作者: Thomas Mueller Graf's avatar Thomas Mueller Graf

Removed unused loop

上级 e720195a
......@@ -234,9 +234,7 @@ public class IntPerfectHash {
split = (size - 47) / DIVIDE;
}
split = Math.max(2, split);
ArrayList<ArrayList<Integer>> lists;
do {
lists = new ArrayList<ArrayList<Integer>>(split);
ArrayList<ArrayList<Integer>> lists = new ArrayList<ArrayList<Integer>>(split);
for (int i = 0; i < split; i++) {
lists.add(new ArrayList<Integer>(size / split));
}
......@@ -244,7 +242,6 @@ public class IntPerfectHash {
ArrayList<Integer> l = lists.get(hash(x, level, 0, split));
l.add(x);
}
} while (lists == null);
if (split >= SPLIT_MANY) {
out.write((byte) SPLIT_MANY);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论