mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
Remove unused function.
This commit is contained in:
parent
b10a817f7e
commit
00de540a31
@ -186,17 +186,6 @@ namespace MWWorld
|
||||
return ptr;
|
||||
}
|
||||
template<typename T>
|
||||
const T *Store<T>::findRandom(const std::string &id) const
|
||||
{
|
||||
const T *ptr = searchRandom(id);
|
||||
if(ptr == nullptr)
|
||||
{
|
||||
const std::string msg = T::getRecordType() + " starting with '" + id + "' not found";
|
||||
throw std::runtime_error(msg);
|
||||
}
|
||||
return ptr;
|
||||
}
|
||||
template<typename T>
|
||||
RecordId Store<T>::load(ESM::ESMReader &esm)
|
||||
{
|
||||
T record;
|
||||
|
@ -179,10 +179,6 @@ namespace MWWorld
|
||||
|
||||
const T *find(const std::string &id) const;
|
||||
|
||||
/** Returns a random record that starts with the named ID. An exception is thrown if none
|
||||
* are found. */
|
||||
const T *findRandom(const std::string &id) const;
|
||||
|
||||
iterator begin() const;
|
||||
iterator end() const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user