diff options
author | Dániel Juhász <juhdanad@gmail.com> | 2018-02-04 04:16:45 +0100 |
---|---|---|
committer | Andrew Ward <rw@rubenwardy.com> | 2018-02-04 03:16:45 +0000 |
commit | 735fc2a1f25eed78460c02867a4960fbf1e66a72 (patch) | |
tree | 45c25a6958309bf6b6277f5a201dc6b112a91e22 /src/voxelalgorithms.h | |
parent | cf0bcebc7620ff2a4bfb44bcbc4909ff9dbe8d24 (diff) | |
download | minetest-735fc2a1f25eed78460c02867a4960fbf1e66a72.tar.gz minetest-735fc2a1f25eed78460c02867a4960fbf1e66a72.tar.bz2 minetest-735fc2a1f25eed78460c02867a4960fbf1e66a72.zip |
Remove unused light updating code
Also remove the unit test that tests the removed algorithms.
Diffstat (limited to 'src/voxelalgorithms.h')
-rw-r--r-- | src/voxelalgorithms.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/voxelalgorithms.h b/src/voxelalgorithms.h index e8f5f64c7..1452f30f4 100644 --- a/src/voxelalgorithms.h +++ b/src/voxelalgorithms.h @@ -31,30 +31,6 @@ class MMVManip; namespace voxalgo { -// TODO: Move unspreadLight and spreadLight from VoxelManipulator to here - -void setLight(VoxelManipulator &v, VoxelArea a, u8 light, - INodeDefManager *ndef); - -void clearLightAndCollectSources(VoxelManipulator &v, VoxelArea a, - enum LightBank bank, INodeDefManager *ndef, - std::set<v3s16> & light_sources, - std::map<v3s16, u8> & unlight_from); - -struct SunlightPropagateResult -{ - bool bottom_sunlight_valid; - - SunlightPropagateResult(bool bottom_sunlight_valid_): - bottom_sunlight_valid(bottom_sunlight_valid_) - {} -}; - -SunlightPropagateResult propagateSunlight(VoxelManipulator &v, VoxelArea a, - bool inexistent_top_provides_sunlight, - std::set<v3s16> & light_sources, - INodeDefManager *ndef); - /*! * Updates the lighting on the map. * The result will be correct only if |