Remove unused commented out code

This commit is contained in:
crumblingstatue 2023-04-02 17:17:31 +02:00
parent 7dba1b22e3
commit 67b2098ffb

View file

@ -82,14 +82,6 @@ fn test_chk_pos() {
assert_eq!(chk_pos(-129), -2);
}
/*fn chunk_local(global: TilePosScalar) -> ChunkLocalTilePosScalar {
if global.is_negative() {
(CHUNK_EXTENT as i32 + global % CHUNK_EXTENT as i32) as u8
} else {
(global % CHUNK_EXTENT as i32) as u8
}
}*/
fn chunk_local(global: TilePosScalar) -> ChunkLocalTilePosScalar {
let mut result = global % CHUNK_EXTENT as i32;
if result.is_negative() {