Remove unused ESM::Land functions

macos_ci_fix
elsid 1 year ago
parent 16628a766f
commit f15ccec0d9
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -390,20 +390,4 @@ namespace ESM
mDataTypes |= flags; mDataTypes |= flags;
mLandData->mDataLoaded |= 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 /// Check if given data type is loaded
bool isDataLoaded(int flags) const; bool isDataLoaded(int flags) const;
/// Sets the flags and creates a LandData if needed
void setDataLoaded(int flags);
Land(const Land& land); Land(const Land& land);
Land& operator=(const Land& land); Land& operator=(const Land& land);
@ -173,9 +170,6 @@ namespace ESM
/// \note Added data fields will be uninitialised /// \note Added data fields will be uninitialised
void add(int flags); void add(int flags);
/// \attention Must not be called on objects that aren't fully loaded.
void remove(int flags);
private: private:
/// Loads data and marks it as loaded /// Loads data and marks it as loaded
/// \return true if data is actually loaded from file, false otherwise /// \return true if data is actually loaded from file, false otherwise

Loading…
Cancel
Save