diff --git a/SabreTools.Helper/Tools/Style.cs b/SabreTools.Helper/Tools/Style.cs index 41db8549..83c8ff11 100644 --- a/SabreTools.Helper/Tools/Style.cs +++ b/SabreTools.Helper/Tools/Style.cs @@ -436,17 +436,6 @@ namespace SabreTools.Helper return bytes; } - /// - /// http://stackoverflow.com/questions/146134/how-to-remove-illegal-characters-from-path-and-filenames - /// - public static string StripInvalidPathChars(string s) - { - string regexSearch = new string(Path.GetInvalidFileNameChars()) + new string(Path.GetInvalidPathChars()); - Regex r = new Regex(string.Format("[{0}]", Regex.Escape(regexSearch))); - s = r.Replace(s, ""); - return s; - } - /// /// http://stackoverflow.com/questions/5613279/c-sharp-hex-to-ascii ///