From 0fee198bbfed34a41561a13cadc45c21f6f54d40 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Sun, 31 Aug 2014 09:52:51 +0100 Subject: [PATCH] Removed some unused code from the API. Also updated the API's definition of `Masterlist::Update` to have the correct return type. --- src/api/api.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/api/api.cpp b/src/api/api.cpp index 21f7e854..caeaeb04 100644 --- a/src/api/api.cpp +++ b/src/api/api.cpp @@ -94,15 +94,11 @@ struct _loot_db_int { extAddedTagIds(nullptr), extRemovedTagIds(nullptr), extMessageArray(nullptr), - extMessageArraySize(0) { - extMessage.type = loot_message_say; - extMessage.message = nullptr; - } + extMessageArraySize(0) {} ~_loot_db_int() { delete[] extAddedTagIds; delete[] extRemovedTagIds; - delete[] extMessage.message; if (extTagMap != nullptr) { for (size_t i=0; i < bashTagMap.size(); i++) @@ -127,7 +123,6 @@ struct _loot_db_int { unsigned int * extAddedTagIds; unsigned int * extRemovedTagIds; - loot_message extMessage; loot_message * extMessageArray; size_t extMessageArraySize; }; @@ -166,8 +161,9 @@ unsigned int c_error(const unsigned int code, const std::string& what) { namespace loot { void Masterlist::GetGitInfo(const boost::filesystem::path& path) {} - void Masterlist::Update(Game& game, const unsigned int language) { + bool Masterlist::Update(Game& game, const unsigned int language) { this->MetadataList::Load(game.MasterlistPath()); + return false; } }