From 2d28d681c70c011566c185c3650ae360ee5cb19b Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Thu, 20 Aug 2020 21:44:19 +0100 Subject: Remove unused variables in ChestEntity/BlockEntityWithItems --- src/BlockEntities/BlockEntityWithItems.cpp | 2 -- src/BlockEntities/ChestEntity.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/BlockEntities/BlockEntityWithItems.cpp b/src/BlockEntities/BlockEntityWithItems.cpp index d7ffc960e..54b67717c 100644 --- a/src/BlockEntities/BlockEntityWithItems.cpp +++ b/src/BlockEntities/BlockEntityWithItems.cpp @@ -55,8 +55,6 @@ void cBlockEntityWithItems::OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum) m_World->MarkChunkDirty(GetChunkX(), GetChunkZ()); m_World->DoWithChunkAt(m_Pos, [&](cChunk & a_Chunk) { - auto & Simulator = *m_World->GetRedstoneSimulator(); - // Notify comparators: m_World->WakeUpSimulators(m_Pos); return true; diff --git a/src/BlockEntities/ChestEntity.cpp b/src/BlockEntities/ChestEntity.cpp index b5d281fec..5f99da454 100644 --- a/src/BlockEntities/ChestEntity.cpp +++ b/src/BlockEntities/ChestEntity.cpp @@ -245,8 +245,6 @@ void cChestEntity::OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum) m_World->MarkChunkDirty(GetChunkX(), GetChunkZ()); m_World->DoWithChunkAt(m_Pos, [&](cChunk & a_Chunk) { - auto & Simulator = *m_World->GetRedstoneSimulator(); - // Notify comparators: m_World->WakeUpSimulators(m_Pos); return true; -- cgit v1.2.3