aboutsummaryrefslogtreecommitdiff
path: root/src/client/client.h
diff options
context:
space:
mode:
authorJude Melton-Houghton <jwmhjwmh@gmail.com>2022-09-26 17:03:43 -0400
committerGitHub <noreply@github.com>2022-09-26 17:03:43 -0400
commitf4a01f3a5dc0d8fe2f4f6d804d790da91d1bc30c (patch)
tree089ddc309e22ae8549ec3b86765ee272f57a33df /src/client/client.h
parent03428d9825cfdf2cfaed6ac9410dafccac0d4f3a (diff)
downloadminetest-f4a01f3a5dc0d8fe2f4f6d804d790da91d1bc30c.tar.xz
Avoid duplication of mod metadata in memory (#12562)
Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'src/client/client.h')
-rw-r--r--src/client/client.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/client/client.h b/src/client/client.h
index bdcc2a3dd..4342a0087 100644
--- a/src/client/client.h
+++ b/src/client/client.h
@@ -383,9 +383,6 @@ public:
const std::string* getModFile(std::string filename);
ModMetadataDatabase *getModStorageDatabase() override { return m_mod_storage_database; }
- bool registerModStorage(ModMetadata *meta) override;
- void unregisterModStorage(const std::string &name) override;
-
// Migrates away old files-based mod storage if necessary
void migrateModStorage();
@@ -593,7 +590,6 @@ private:
// Client modding
ClientScripting *m_script = nullptr;
- std::unordered_map<std::string, ModMetadata *> m_mod_storages;
ModMetadataDatabase *m_mod_storage_database = nullptr;
float m_mod_storage_save_timer = 10.0f;
std::vector<ModSpec> m_mods;