From 64442b05f8aa39918f5cb75503c7f57b0bd62827 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 18 Oct 2020 16:37:07 +0100 Subject: cBlockInfo: further cleanup (#5001) * cBlockInfo: further cleanup + Use switch statements instead of lookup in dynamically initialised arrays - Remove some deprecated bindings * Update Stubs removing references to BlockInfoArray --- tests/LuaThreadStress/Stubs.cpp | 11 ++--------- tests/SchematicFileSerializer/Stubs.cpp | 16 ---------------- 2 files changed, 2 insertions(+), 25 deletions(-) (limited to 'tests') diff --git a/tests/LuaThreadStress/Stubs.cpp b/tests/LuaThreadStress/Stubs.cpp index fe2687ef4..4b347b895 100644 --- a/tests/LuaThreadStress/Stubs.cpp +++ b/tests/LuaThreadStress/Stubs.cpp @@ -86,16 +86,9 @@ extern "C" int luaopen_lxp(lua_State * a_LuaState) -cBlockInfo::cBlockInfo() -{ -} - - - - - -cBlockInfo::cBlockInfoArray::cBlockInfoArray() +bool cBlockInfo::IsSolid(BLOCKTYPE) { + return false; } diff --git a/tests/SchematicFileSerializer/Stubs.cpp b/tests/SchematicFileSerializer/Stubs.cpp index 96b8f9a8c..67ecde7cd 100644 --- a/tests/SchematicFileSerializer/Stubs.cpp +++ b/tests/SchematicFileSerializer/Stubs.cpp @@ -13,22 +13,6 @@ -cBlockInfo::cBlockInfo() -{ -} - - - - - -cBlockInfo::cBlockInfoArray::cBlockInfoArray() -{ -} - - - - - cBoundingBox::cBoundingBox(double, double, double, double, double, double) { } -- cgit v1.2.3