diff --git a/components/esm3/loadland.cpp b/components/esm3/loadland.cpp index f25a3ee1ae..c64a2d35b5 100644 --- a/components/esm3/loadland.cpp +++ b/components/esm3/loadland.cpp @@ -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; - } - } - } } diff --git a/components/esm3/loadland.hpp b/components/esm3/loadland.hpp index 83ac849c7e..9712aa3066 100644 --- a/components/esm3/loadland.hpp +++ b/components/esm3/loadland.hpp @@ -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