From 8e859f74085b7e7c78da48027ad2cf69aeeec430 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sat, 19 Feb 2022 11:42:56 +0000 Subject: [PATCH] Remove obsolete FileRevision class --- CMakeLists.txt | 1 - docs/api/reference.rst | 3 -- include/loot/database_interface.h | 1 - include/loot/struct/file_revision.h | 55 ----------------------------- 4 files changed, 60 deletions(-) delete mode 100644 include/loot/struct/file_revision.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 471e654e..8310acc8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -221,7 +221,6 @@ set(LIBLOOT_INCLUDE_H_FILES "${CMAKE_SOURCE_DIR}/include/loot/metadata/plugin_metadata.h" "${CMAKE_SOURCE_DIR}/include/loot/metadata/tag.h" "${CMAKE_SOURCE_DIR}/include/loot/plugin_interface.h" - "${CMAKE_SOURCE_DIR}/include/loot/struct/file_revision.h" "${CMAKE_SOURCE_DIR}/include/loot/struct/simple_message.h" "${CMAKE_SOURCE_DIR}/include/loot/vertex.h") diff --git a/docs/api/reference.rst b/docs/api/reference.rst index c4431f1a..fa1c6772 100644 --- a/docs/api/reference.rst +++ b/docs/api/reference.rst @@ -18,9 +18,6 @@ Enumerations Public-Field Data Structures ============================ -.. doxygenstruct:: loot::FileRevision - :members: - .. doxygenstruct:: loot::SimpleMessage :members: diff --git a/include/loot/database_interface.h b/include/loot/database_interface.h index 5653d8f0..2cbc7f27 100644 --- a/include/loot/database_interface.h +++ b/include/loot/database_interface.h @@ -33,7 +33,6 @@ #include "loot/metadata/group.h" #include "loot/metadata/message.h" #include "loot/metadata/plugin_metadata.h" -#include "loot/struct/file_revision.h" #include "loot/struct/simple_message.h" namespace loot { diff --git a/include/loot/struct/file_revision.h b/include/loot/struct/file_revision.h deleted file mode 100644 index 59c5a45d..00000000 --- a/include/loot/struct/file_revision.h +++ /dev/null @@ -1,55 +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_FILE_REVISION -#define LOOT_FILE_REVISION - -#include - -namespace loot { -/** - * @brief A structure that holds data about a file's source control revision. - */ -struct FileRevision { - inline explicit FileRevision() : is_modified(false) {} - - /** - * @brief The revision hash for the file. - */ - std::string id; - - /** - * @brief A string containing the ISO 8601 formatted revision date, ie. - * YYYY-MM-DD. - */ - std::string date; - - /** - * @brief `true` if the file has been edited since the revision identified by - * `id`, or `false` if it is at exactly the revision given. - */ - bool is_modified; -}; -} - -#endif