提交 8bd4d361 authored 作者: Thomas Mueller's avatar Thomas Mueller

Remove unused code.

上级 7435ef3d
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
*/ */
package org.h2.test.unit; package org.h2.test.unit;
import java.util.Arrays;
import java.util.Random; import java.util.Random;
import org.h2.test.TestBase; import org.h2.test.TestBase;
import org.h2.util.IntArray; import org.h2.util.IntArray;
...@@ -64,8 +63,10 @@ public class TestIntArray extends TestBase { ...@@ -64,8 +63,10 @@ public class TestIntArray extends TestBase {
} }
break; break;
case 2: case 2:
array.remove(idx); if (test.length > 0) {
test = remove(test, idx); array.remove(idx);
test = remove(test, idx);
}
break; break;
case 3: case 3:
if (test.length > idx) { if (test.length > idx) {
...@@ -102,28 +103,6 @@ public class TestIntArray extends TestBase { ...@@ -102,28 +103,6 @@ public class TestIntArray extends TestBase {
return add(array, array.length, value); return add(array, array.length, value);
} }
private int[] addValueSorted(int[] array, int value) {
for (int i = 0; i < array.length; i++) {
if (array[i] < value) {
continue;
}
if (array[i] == value) {
return array;
}
return add(array, i, value);
}
return add(array, value);
}
private int findNextValueIndex(int[] array, int value) {
for (int i = 0; i < array.length; i++) {
if (array[i] >= value) {
return i;
}
}
return array.length;
}
private int get(int[] array, int i) { private int get(int[] array, int i) {
return array[i]; return array[i];
} }
...@@ -146,14 +125,4 @@ public class TestIntArray extends TestBase { ...@@ -146,14 +125,4 @@ public class TestIntArray extends TestBase {
return array; return array;
} }
private int[] set(int[] array, int i, int value) {
array[i] = value;
return array;
}
private int[] sort(int[] array) {
Arrays.sort(array);
return array;
}
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论