Removed unused loop

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