mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-12-25 02:17:42 +01:00
Remove unneded commented-out code
This commit is contained in:
parent
a5c6f5a31f
commit
685a7bf85e
@ -628,10 +628,15 @@ private void sort() {
|
||||
MergeSort.mergeSortInt(materialIndexSort, 0, size, this::compareMaterialIndex, materialIndexSortSupport);
|
||||
|
||||
// move
|
||||
int s;
|
||||
int s, c;
|
||||
for (int i = 0; i < size; i++) {
|
||||
s = materialIndexSort[i];
|
||||
while (s < i) s = materialIndexSort[s];
|
||||
s = materialIndexSort[i]; c = 0;
|
||||
while (s < i) {
|
||||
s = materialIndexSort[s];
|
||||
|
||||
// should never happen, just making absolutely sure this can't get stuck in an endless loop
|
||||
if (c++ > size) throw new IllegalStateException();
|
||||
}
|
||||
swap(i, s);
|
||||
}
|
||||
}
|
||||
@ -696,11 +701,6 @@ private void swap(int face1, int face2) {
|
||||
vi = materialIndex[face1];
|
||||
materialIndex[face1] = materialIndex[face2];
|
||||
materialIndex[face2] = vi;
|
||||
|
||||
//swap material-index-sort (assuming FI_MATERIAL_INDEX = 1)
|
||||
//vi = materialIndexSort[face1];
|
||||
//materialIndexSort[face1] = materialIndexSort[face2];
|
||||
//materialIndexSort[face2] = vi;
|
||||
}
|
||||
|
||||
private static void calculateSurfaceNormal(
|
||||
|
Loading…
Reference in New Issue
Block a user