From 6e868ed3126da5ce6a35cd702d77ab49f8ff69c7 Mon Sep 17 00:00:00 2001 From: Goodlyay Date: Sun, 3 Jul 2022 03:23:20 -0700 Subject: [PATCH] Remove unused functions --- src/Lighting.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/Lighting.c b/src/Lighting.c index 1ba4207f8..637473623 100644 --- a/src/Lighting.c +++ b/src/Lighting.c @@ -427,21 +427,6 @@ static void CalcBlockLight(cc_uint8 blockLight, int x, int y, int z, cc_bool sun } } } -static cc_bool BlocksSun(int x, int y, int z) { - BlockID thisBlock = World_GetBlock(x, y, z); - if (Blocks.BlocksLight[thisBlock]) { return true; } - return false; -} -static cc_bool InSun(int x, int y, int z) { - int topY = World.Height - 1; - while (!BlocksSun(x, topY, z)) { - topY--; - if (topY == 0) { - return true; - } - } - return y > topY; -} static void CalculateChunkLightingSelf(int chunkIndex, int cx, int cy, int cz) { int x, y, z; int chunkStartX, chunkStartY, chunkStartZ; //world coords