Drop unused struct ModLicenseInfo & ModAuthorInfo + default constructor in ModMetadata
authorLoic Blot <loic.blot@unix-experience.fr>
Fri, 9 Mar 2018 07:36:42 +0000 (08:36 +0100)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Fri, 9 Mar 2018 22:27:26 +0000 (23:27 +0100)
src/mods.h

index c16df30e68bc3bb49aac5506aaaaf75c795e2b4c..9f4d297390f3df5470808b80e6fe4c1a68922cd6 100644 (file)
@@ -27,6 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include <map>
 #include <json/json.h>
 #include <unordered_set>
+#include "util/basic_macros.h"
 #include "config.h"
 #include "metadata.h"
 
@@ -146,20 +147,10 @@ public:
 };
 #endif
 
-struct ModLicenseInfo {
-       int id;
-       std::string shortinfo;
-       std::string url;
-};
-
-struct ModAuthorInfo {
-       int id;
-       std::string username;
-};
-
 class ModMetadata: public Metadata
 {
 public:
+       ModMetadata() = delete;
        ModMetadata(const std::string &mod_name);
        ~ModMetadata() = default;