removed unused key and redundent lookup

This commit is contained in:
Trey M 2022-05-13 15:04:47 -05:00
parent ecc178fea8
commit 55533b3542

View File

@ -376,10 +376,8 @@ void VoxelTerrain::set_block_enter_notification_enabled(bool enable) {
_block_enter_notification_enabled = enable;
if (enable == false) {
const Vector3i *key = nullptr;
for (auto elm = _loading_blocks.begin(); elm < _loading_blocks.end(); ++elm) {
LoadingBlock *lb = _loading_blocks.getptr(elm->key);
LoadingBlock *lb = &elm->value;
CRASH_COND(lb == nullptr);
lb->viewers_to_notify.clear();
}