From 5e4651e9c466a061d4d1c3b75ecd890ba30cdffc Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Fri, 17 Apr 2015 04:08:43 -0600 Subject: [PATCH] Deprecate ValidString & SanitizeString methods. They're unused and don't support UTF-8. --- TShockAPI/Utils.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TShockAPI/Utils.cs b/TShockAPI/Utils.cs index f73386e4..866aae88 100644 --- a/TShockAPI/Utils.cs +++ b/TShockAPI/Utils.cs @@ -779,6 +779,7 @@ namespace TShockAPI /// /// String to check /// True if the string only contains printable characters + [Obsolete("ValidString is being removed as it serves no purpose to TShock at this time.")] public bool ValidString(string str) { foreach (var c in str) @@ -870,6 +871,7 @@ namespace TShockAPI /// /// string /// sanitized string + [Obsolete("SanitizeString is being removed from TShock as it currently serves no purpose.")] public string SanitizeString(string str) { var returnstr = str.ToCharArray();