Removed some unused code from the API.

Also updated the API's definition of `Masterlist::Update` to have the
correct return type.
This commit is contained in:
WrinklyNinja
2014-08-31 09:52:51 +01:00
parent 3145a91ae9
commit 0fee198bbf
+3 -7
View File
@@ -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;
}
}