mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Unused function
This commit is contained in:
parent
8ac7b04770
commit
151521bb68
@ -160,18 +160,6 @@ namespace MWLua
|
||||
return ESM::RefId::deserializeText(LuaUtil::cast<std::string_view>(spellOrId));
|
||||
}
|
||||
|
||||
static const ESM::Spell* toSpell(const sol::object& spellOrId)
|
||||
{
|
||||
if (spellOrId.is<ESM::Spell>())
|
||||
return spellOrId.as<const ESM::Spell*>();
|
||||
else
|
||||
{
|
||||
auto& store = MWBase::Environment::get().getWorld()->getStore();
|
||||
auto refId = ESM::RefId::deserializeText(LuaUtil::cast<std::string_view>(spellOrId));
|
||||
return store.get<ESM::Spell>().find(refId);
|
||||
}
|
||||
}
|
||||
|
||||
sol::table initCoreMagicBindings(const Context& context)
|
||||
{
|
||||
sol::state_view& lua = context.mLua->sol();
|
||||
|
Loading…
x
Reference in New Issue
Block a user