summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/DeprecationManager.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-09-26 01:55:26 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-09-26 01:55:26 -0400
commitc1a9dc7f7e21660db50fd6d1b892f7c3c3dbd673 (patch)
treec0cce2edb52758f33d5fb74660826223ae60a35a /src/StardewModdingAPI/Framework/DeprecationManager.cs
parent07382277eacdb91a3994bca35fed40a060fbcf0c (diff)
downloadSMAPI-c1a9dc7f7e21660db50fd6d1b892f7c3c3dbd673.tar.gz
SMAPI-c1a9dc7f7e21660db50fd6d1b892f7c3c3dbd673.tar.bz2
SMAPI-c1a9dc7f7e21660db50fd6d1b892f7c3c3dbd673.zip
minor cleanup after 1.x removal
Diffstat (limited to 'src/StardewModdingAPI/Framework/DeprecationManager.cs')
-rw-r--r--src/StardewModdingAPI/Framework/DeprecationManager.cs18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/StardewModdingAPI/Framework/DeprecationManager.cs b/src/StardewModdingAPI/Framework/DeprecationManager.cs
index 43e82d74..b07c6c7d 100644
--- a/src/StardewModdingAPI/Framework/DeprecationManager.cs
+++ b/src/StardewModdingAPI/Framework/DeprecationManager.cs
@@ -1,6 +1,5 @@
-using System;
+using System;
using System.Collections.Generic;
-using System.Reflection;
namespace StardewModdingAPI.Framework
{
@@ -52,10 +51,6 @@ namespace StardewModdingAPI.Framework
if (!this.MarkWarned(source ?? "<unknown>", nounPhrase, version))
return;
- // show SMAPI 2.0 meta-warning
- if(this.MarkWarned("SMAPI", "SMAPI 2.0 meta-warning", "2.0"))
- this.Monitor.Log("Some mods may stop working in SMAPI 2.0 (but they'll work fine for now). Try updating mods with 'deprecated code' warnings; if that doesn't remove the warnings, let the mod authors know about this message or see http://stardewvalleywiki.com/Modding:SMAPI_2.0 for details.", LogLevel.Warn);
-
// build message
string message = $"{source ?? "An unknown mod"} uses deprecated code ({nounPhrase}).";
if (source == null)
@@ -106,16 +101,5 @@ namespace StardewModdingAPI.Framework
this.LoggedDeprecations.Add(key);
return true;
}
-
- /// <summary>Get whether a type implements the given virtual method.</summary>
- /// <param name="subtype">The type to check.</param>
- /// <param name="baseType">The base type which declares the virtual method.</param>
- /// <param name="name">The method name.</param>
- /// <param name="argumentTypes">The expected argument types.</param>
- internal bool IsVirtualMethodImplemented(Type subtype, Type baseType, string name, Type[] argumentTypes)
- {
- MethodInfo method = subtype.GetMethod(nameof(Mod.Entry), argumentTypes);
- return method.DeclaringType != baseType;
- }
}
}