mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-25 03:40:40 +00:00
Remove unused ESM::Land functions
This commit is contained in:
parent
16628a766f
commit
f15ccec0d9
@ -390,20 +390,4 @@ namespace ESM
|
||||
mDataTypes |= flags;
|
||||
mLandData->mDataLoaded |= flags;
|
||||
}
|
||||
|
||||
void Land::remove(int flags)
|
||||
{
|
||||
mDataTypes &= ~flags;
|
||||
|
||||
if (mLandData)
|
||||
{
|
||||
mLandData->mDataLoaded &= ~flags;
|
||||
|
||||
if (!mLandData->mDataLoaded)
|
||||
{
|
||||
delete mLandData;
|
||||
mLandData = nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -148,9 +148,6 @@ namespace ESM
|
||||
/// Check if given data type is loaded
|
||||
bool isDataLoaded(int flags) const;
|
||||
|
||||
/// Sets the flags and creates a LandData if needed
|
||||
void setDataLoaded(int flags);
|
||||
|
||||
Land(const Land& land);
|
||||
|
||||
Land& operator=(const Land& land);
|
||||
@ -173,9 +170,6 @@ namespace ESM
|
||||
/// \note Added data fields will be uninitialised
|
||||
void add(int flags);
|
||||
|
||||
/// \attention Must not be called on objects that aren't fully loaded.
|
||||
void remove(int flags);
|
||||
|
||||
private:
|
||||
/// Loads data and marks it as loaded
|
||||
/// \return true if data is actually loaded from file, false otherwise
|
||||
|
Loading…
x
Reference in New Issue
Block a user