mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 18:29:55 +00:00
Remove dead code
This commit is contained in:
parent
00356e4683
commit
9b565c4cf9
5 changed files with 0 additions and 24 deletions
|
@ -102,11 +102,6 @@ bool CSMWorld::ScriptContext::isId (const std::string& name) const
|
||||||
return std::binary_search (mIds.begin(), mIds.end(), Misc::StringUtils::lowerCase (name));
|
return std::binary_search (mIds.begin(), mIds.end(), Misc::StringUtils::lowerCase (name));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CSMWorld::ScriptContext::isJournalId (const std::string& name) const
|
|
||||||
{
|
|
||||||
return mData.getJournals().searchId (name)!=-1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CSMWorld::ScriptContext::invalidateIds()
|
void CSMWorld::ScriptContext::invalidateIds()
|
||||||
{
|
{
|
||||||
mIdsUpdated = false;
|
mIdsUpdated = false;
|
||||||
|
|
|
@ -39,9 +39,6 @@ namespace CSMWorld
|
||||||
bool isId (const std::string& name) const override;
|
bool isId (const std::string& name) const override;
|
||||||
///< Does \a name match an ID, that can be referenced?
|
///< Does \a name match an ID, that can be referenced?
|
||||||
|
|
||||||
bool isJournalId (const std::string& name) const override;
|
|
||||||
///< Does \a name match a journal ID?
|
|
||||||
|
|
||||||
void invalidateIds();
|
void invalidateIds();
|
||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
|
|
|
@ -86,14 +86,4 @@ namespace MWScript
|
||||||
store.get<ESM::Weapon>().search (name) ||
|
store.get<ESM::Weapon>().search (name) ||
|
||||||
store.get<ESM::Script>().search (name);
|
store.get<ESM::Script>().search (name);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CompilerContext::isJournalId (const std::string& name) const
|
|
||||||
{
|
|
||||||
const MWWorld::ESMStore &store =
|
|
||||||
MWBase::Environment::get().getWorld()->getStore();
|
|
||||||
|
|
||||||
const ESM::Dialogue *topic = store.get<ESM::Dialogue>().search (name);
|
|
||||||
|
|
||||||
return topic && topic->mType==ESM::Dialogue::Journal;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,9 +39,6 @@ namespace MWScript
|
||||||
|
|
||||||
bool isId (const std::string& name) const override;
|
bool isId (const std::string& name) const override;
|
||||||
///< Does \a name match an ID, that can be referenced?
|
///< Does \a name match an ID, that can be referenced?
|
||||||
|
|
||||||
bool isJournalId (const std::string& name) const override;
|
|
||||||
///< Does \a name match a journal ID?
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,9 +42,6 @@ namespace Compiler
|
||||||
|
|
||||||
virtual bool isId (const std::string& name) const = 0;
|
virtual bool isId (const std::string& name) const = 0;
|
||||||
///< Does \a name match an ID, that can be referenced?
|
///< Does \a name match an ID, that can be referenced?
|
||||||
|
|
||||||
virtual bool isJournalId (const std::string& name) const = 0;
|
|
||||||
///< Does \a name match a journal ID?
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue