From 083cc0c669b4ee6230ceb0983c6952152a4090c8 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Wed, 27 May 2026 03:08:11 +0300 Subject: [PATCH] Fix build, remove unused file --- lib/callback/CDynLibHandler.cpp | 2 +- test/mock/mock_spells_effects_Registry.h | 34 ------------------------ 2 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 test/mock/mock_spells_effects_Registry.h diff --git a/lib/callback/CDynLibHandler.cpp b/lib/callback/CDynLibHandler.cpp index ff9f3a1c0..da899979f 100644 --- a/lib/callback/CDynLibHandler.cpp +++ b/lib/callback/CDynLibHandler.cpp @@ -107,7 +107,7 @@ rett createAny(const boost::filesystem::path & libpath, const std::string & meth if(!ret) logGlobal->error("Cannot get AI!"); - return std::move(ret); + return ret; #endif // STATIC_AI } diff --git a/test/mock/mock_spells_effects_Registry.h b/test/mock/mock_spells_effects_Registry.h deleted file mode 100644 index 0a612ee76..000000000 --- a/test/mock/mock_spells_effects_Registry.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * mock_spells_effects_Registry.h, part of VCMI engine - * - * Authors: listed in file AUTHORS in main folder - * - * License: GNU General Public License v2.0 or later - * Full text of license available in license.txt file, in main folder - * - */ - -#pragma once - -#include "../../lib/spells/effects/Registry.h" - -namespace spells -{ -namespace effects -{ - -class EffectFactoryMock : public IEffectFactory -{ -public: - MOCK_CONST_METHOD0(create, Effect *()); -}; - -class RegistryMock : public Registry -{ -public: - MOCK_CONST_METHOD1(find, const IEffectFactory *(const std::string &)); - MOCK_METHOD2(add, void(const std::string &, FactoryPtr)); -}; - -} -}