From 08ccc0ee7658338fc90e8f0019dbef74cfda4e69 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Tue, 9 Jul 2019 03:08:22 -0500 Subject: [PATCH] Finally killed ModsaberModInfo --- IPA.Loader/IPA.Loader.csproj | 1 - .../BeatSaber/ModsaberModInfo.cs | 59 ------------------- 2 files changed, 60 deletions(-) delete mode 100644 IPA.Loader/PluginInterfaces/BeatSaber/ModsaberModInfo.cs diff --git a/IPA.Loader/IPA.Loader.csproj b/IPA.Loader/IPA.Loader.csproj index db2f9b50..b2647f11 100644 --- a/IPA.Loader/IPA.Loader.csproj +++ b/IPA.Loader/IPA.Loader.csproj @@ -83,7 +83,6 @@ - diff --git a/IPA.Loader/PluginInterfaces/BeatSaber/ModsaberModInfo.cs b/IPA.Loader/PluginInterfaces/BeatSaber/ModsaberModInfo.cs deleted file mode 100644 index e0a7de05..00000000 --- a/IPA.Loader/PluginInterfaces/BeatSaber/ModsaberModInfo.cs +++ /dev/null @@ -1,59 +0,0 @@ -using System; -using Version = SemVer.Version; - -// ReSharper disable CheckNamespace - -namespace IPA -{ - /// - /// A class to provide information about a mod on ModSaber.ML - /// - // ReSharper disable once IdentifierTypo - [Obsolete("This is unused, and has been since the manifest was introduced. All functionality is provided by the manifest.")] - public class ModsaberModInfo - { - /// - /// The name the mod uses on ModSaber as an identifier. - /// - public string InternalName - { - get => _internalName; - set - { - if (_internalName == null) - { - _internalName = value; - } - else - { - throw new Exception("Cannot change name one it has been set!"); - } - } - } - private string _internalName; - - /// - /// The version of the currently installed mod. Used to compare to the version on ModSaber. Should be a valid SemVer version. - /// - public string CurrentVersion - { - get => _currentVersion; - set - { - if (_currentVersion == null) - { - var version = new Version(value); // check for valid version - _currentVersion = value; - SemverVersion = version; - } - else - { - throw new Exception("Cannot change version one it has been set!"); - } - } - } - private string _currentVersion; - - internal Version SemverVersion; - } -}