From c555920fe79bdc350eb3b246dc0b7d6b73318726 Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Tue, 26 Feb 2013 16:53:45 -0500 Subject: [PATCH] Move RemovePlugin to BaseKernel/IKernel --- MediaBrowser.Common/Kernel/BaseKernel.cs | 11 +++++++++++ MediaBrowser.Common/Kernel/IKernel.cs | 7 +++++++ MediaBrowser.Controller/Kernel.cs | 11 ----------- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/MediaBrowser.Common/Kernel/BaseKernel.cs b/MediaBrowser.Common/Kernel/BaseKernel.cs index 962c740c3d..9e8edce233 100644 --- a/MediaBrowser.Common/Kernel/BaseKernel.cs +++ b/MediaBrowser.Common/Kernel/BaseKernel.cs @@ -462,5 +462,16 @@ namespace MediaBrowser.Common.Kernel /// The resource pools. public ResourcePool ResourcePools { get; set; } + /// + /// Removes the plugin. + /// + /// The plugin. + public void RemovePlugin(IPlugin plugin) + { + var list = Plugins.ToList(); + list.Remove(plugin); + Plugins = list; + } + } } diff --git a/MediaBrowser.Common/Kernel/IKernel.cs b/MediaBrowser.Common/Kernel/IKernel.cs index dce744c0a7..715dc9a270 100644 --- a/MediaBrowser.Common/Kernel/IKernel.cs +++ b/MediaBrowser.Common/Kernel/IKernel.cs @@ -123,5 +123,12 @@ namespace MediaBrowser.Common.Kernel /// /// The resource pools. ResourcePool ResourcePools { get; set; } + + /// + /// Removes the plugin. + /// + /// The plugin. + void RemovePlugin(IPlugin plugin); + } } diff --git a/MediaBrowser.Controller/Kernel.cs b/MediaBrowser.Controller/Kernel.cs index 521bf92c65..48dfa5c16c 100644 --- a/MediaBrowser.Controller/Kernel.cs +++ b/MediaBrowser.Controller/Kernel.cs @@ -536,17 +536,6 @@ namespace MediaBrowser.Controller }); } - /// - /// Removes the plugin. - /// - /// The plugin. - internal void RemovePlugin(IPlugin plugin) - { - var list = Plugins.ToList(); - list.Remove(plugin); - Plugins = list; - } - /// /// Gets the system info. ///