diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c89bba9..3b7a5754 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -165,7 +165,6 @@ set (LOOT_API_HEADERS "${CMAKE_SOURCE_DIR}/include/loot/api.h" "${CMAKE_SOURCE_DIR}/include/loot/enum/game_type.h" "${CMAKE_SOURCE_DIR}/include/loot/enum/log_verbosity.h" "${CMAKE_SOURCE_DIR}/include/loot/enum/message_type.h" - "${CMAKE_SOURCE_DIR}/include/loot/enum/plugin_cleanliness.h" "${CMAKE_SOURCE_DIR}/include/loot/game_interface.h" "${CMAKE_SOURCE_DIR}/include/loot/loot_version.h" "${CMAKE_SOURCE_DIR}/include/loot/metadata/conditional_metadata.h" diff --git a/docs/api/changelog.rst b/docs/api/changelog.rst index 04e554ae..17024a32 100644 --- a/docs/api/changelog.rst +++ b/docs/api/changelog.rst @@ -69,6 +69,11 @@ Removed - The ``PluginTags`` struct, as it is no longer used. - The ``LanguageCode`` enum, as the API now uses ISO language codes directly instead. +- The ``PluginCleanliness`` enum. as it's no longer used. Plugin cleanliness + should now be checked by getting a plugin's evaluated metadata and checking + if any dirty info is present. If none is present, the cleanliness is unknown. + If dirty info is present, check if any of the English info strings contain the + text "Do not clean": if not, the plugin is dirty. - The LOOT API no longer caches the load order, as this is already done more accurately by libloadorder (which is used internally). diff --git a/docs/api/reference.rst b/docs/api/reference.rst index c01e65ea..1a9566d7 100644 --- a/docs/api/reference.rst +++ b/docs/api/reference.rst @@ -13,8 +13,6 @@ Enumerations .. doxygenenum:: loot::MessageType -.. doxygenenum:: loot::PluginCleanliness - Public-Field Data Structures ============================ diff --git a/include/loot/database_interface.h b/include/loot/database_interface.h index 3843f17c..29cca781 100644 --- a/include/loot/database_interface.h +++ b/include/loot/database_interface.h @@ -27,7 +27,6 @@ #include #include -#include "loot/enum/plugin_cleanliness.h" #include "loot/metadata/message.h" #include "loot/metadata/plugin_metadata.h" #include "loot/struct/masterlist_info.h" diff --git a/include/loot/enum/plugin_cleanliness.h b/include/loot/enum/plugin_cleanliness.h deleted file mode 100644 index 58f4a0b0..00000000 --- a/include/loot/enum/plugin_cleanliness.h +++ /dev/null @@ -1,52 +0,0 @@ -/* LOOT - - A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and - Fallout: New Vegas. - - Copyright (C) 2012-2016 WrinklyNinja - - This file is part of LOOT. - - LOOT is free software: you can redistribute - it and/or modify it under the terms of the GNU General Public License - as published by the Free Software Foundation, either version 3 of - the License, or (at your option) any later version. - - LOOT is distributed in the hope that it will - be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with LOOT. If not, see - . - */ -#ifndef LOOT_PLUGIN_CLEANLINESS -#define LOOT_PLUGIN_CLEANLINESS - -/** - * The namespace used by the LOOT API. - */ -namespace loot { -/** - * @brief Codes used to indicate the cleanliness of a plugin according to the - * information contained within the loaded masterlist/userlist. - */ -enum struct PluginCleanliness : unsigned int { - /** Indicates that the plugin is clean. */ - clean, - /** Indicates that the plugin is dirty. */ - dirty, - /** - * Indicates that the plugin contains dirty edits, but that they are - * part of the plugin's intended functionality and should not be removed. - */ - do_not_clean, - /** - * Indicates that no data is available on whether the plugin is dirty or not. - */ - unknown, -}; -} - -#endif