Fix build, remove unused file

This commit is contained in:
Ivan Savenko
2026-05-27 03:08:11 +03:00
parent 0b3a2f4ef5
commit 083cc0c669
2 changed files with 1 additions and 35 deletions
+1 -1
View File
@@ -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
}
-34
View File
@@ -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));
};
}
}