summaryrefslogtreecommitdiffstats
path: root/tests/LuaThreadStress/Stubs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/LuaThreadStress/Stubs.cpp')
-rw-r--r--tests/LuaThreadStress/Stubs.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/LuaThreadStress/Stubs.cpp b/tests/LuaThreadStress/Stubs.cpp
index db0e8826a..f921477b7 100644
--- a/tests/LuaThreadStress/Stubs.cpp
+++ b/tests/LuaThreadStress/Stubs.cpp
@@ -86,16 +86,15 @@ extern "C" int luaopen_lxp(lua_State * a_LuaState)
-void cBlockInfo::sHandlerDeleter::operator () (cBlockHandler * a_Handler)
+cBlockInfo::cBlockInfo()
{
- delete a_Handler;
}
-cBlockInfo::cBlockInfo()
+cBlockInfo::cBlockInfoArray::cBlockInfoArray()
{
}
@@ -103,15 +102,9 @@ cBlockInfo::cBlockInfo()
-cBlockInfo::cBlockInfoArray::cBlockInfoArray()
+cBlockHandler * cBlockInfo::GetHandler(BLOCKTYPE a_Type)
{
- cBlockInfoArray & BlockInfos = *this;
- // The piece-loading code uses the handlers for rotations, so we need valid handlers
- // Insert dummy handlers:
- for (size_t i = 0; i < BlockInfos.size(); i++)
- {
- BlockInfos[i].m_Handler.reset(new cBlockHandler(static_cast<BLOCKTYPE>(i)));
- }
+ return nullptr;
}