From 7806ccd42f0535f077ab80228e16965d2172dc8a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 10 Apr 2013 11:38:23 -0400 Subject: resharper suggestions in common project --- MediaBrowser.Common/Extensions/BaseExtensions.cs | 42 ------------------------ 1 file changed, 42 deletions(-) (limited to 'MediaBrowser.Common/Extensions') diff --git a/MediaBrowser.Common/Extensions/BaseExtensions.cs b/MediaBrowser.Common/Extensions/BaseExtensions.cs index 604b2bdd2a..9591862e76 100644 --- a/MediaBrowser.Common/Extensions/BaseExtensions.cs +++ b/MediaBrowser.Common/Extensions/BaseExtensions.cs @@ -12,37 +12,6 @@ namespace MediaBrowser.Common.Extensions /// public static class BaseExtensions { - /// - /// Tries the add. - /// - /// The type of the T key. - /// The type of the T value. - /// The dictionary. - /// The key. - /// The value. - /// true if XXXX, false otherwise - public static bool TryAdd(this Dictionary dictionary, TKey key, TValue value) - { - if (dictionary.ContainsKey(key)) - { - return false; - } - - dictionary.Add(key, value); - return true; - } - - /// - /// Provides an additional overload for string.split - /// - /// The val. - /// The separator. - /// The options. - /// System.String[][]. - public static string[] Split(this string val, char separator, StringSplitOptions options) - { - return val.Split(new[] { separator }, options); - } /// /// Strips the HTML. @@ -55,17 +24,6 @@ namespace MediaBrowser.Common.Extensions const string pattern = @"<(.|\n)*?>"; return Regex.Replace(htmlString, pattern, string.Empty).Trim(); } - - /// - /// Shuffles an IEnumerable - /// - /// - /// The list. - /// IEnumerable{``0}. - public static IEnumerable Shuffle(this IEnumerable list) - { - return list.OrderBy(x => Guid.NewGuid()); - } /// /// Gets the M d5. -- cgit v1.2.3