diff --git a/MediaBrowser.Api/MediaBrowser.Api.csproj b/MediaBrowser.Api/MediaBrowser.Api.csproj index 44e7947e24..c7bba4e9a8 100644 --- a/MediaBrowser.Api/MediaBrowser.Api.csproj +++ b/MediaBrowser.Api/MediaBrowser.Api.csproj @@ -115,7 +115,6 @@ - diff --git a/MediaBrowser.Api/Plugin.cs b/MediaBrowser.Api/Plugin.cs deleted file mode 100644 index 321267b041..0000000000 --- a/MediaBrowser.Api/Plugin.cs +++ /dev/null @@ -1,52 +0,0 @@ -using MediaBrowser.Common.Configuration; -using MediaBrowser.Common.Kernel; -using MediaBrowser.Common.Plugins; -using MediaBrowser.Model.Plugins; -using MediaBrowser.Model.Serialization; - -namespace MediaBrowser.Api -{ - /// - /// Class Plugin - /// - public class Plugin : BasePlugin - { - /// - /// Initializes a new instance of the class. - /// - /// The app paths. - /// The XML serializer. - public Plugin(IApplicationPaths appPaths, IXmlSerializer xmlSerializer) - : base(appPaths, xmlSerializer) - { - Instance = this; - } - - /// - /// Gets the name of the plugin - /// - /// The name. - public override string Name - { - get { return "Web Api"; } - } - - /// - /// Gets a value indicating whether this instance is a core plugin. - /// - /// true if this instance is a core plugin; otherwise, false. - public override bool IsCorePlugin - { - get - { - return true; - } - } - - /// - /// Gets the instance. - /// - /// The instance. - public static Plugin Instance { get; private set; } - } -} diff --git a/MediaBrowser.Common/Plugins/BasePlugin.cs b/MediaBrowser.Common/Plugins/BasePlugin.cs index 4cff2eeb98..9c4a8e8ffd 100644 --- a/MediaBrowser.Common/Plugins/BasePlugin.cs +++ b/MediaBrowser.Common/Plugins/BasePlugin.cs @@ -43,18 +43,6 @@ namespace MediaBrowser.Common.Plugins get { return string.Empty; } } - /// - /// Gets a value indicating whether this instance is a core plugin. - /// - /// true if this instance is a core plugin; otherwise, false. - public virtual bool IsCorePlugin - { - get - { - return false; - } - } - /// /// Gets a value indicating whether this instance is first run. /// @@ -316,7 +304,6 @@ namespace MediaBrowser.Common.Plugins AssemblyFileName = AssemblyFileName, ConfigurationDateLastModified = ConfigurationDateLastModified, Description = Description, - IsCorePlugin = IsCorePlugin, Id = Id, EnableAutoUpdate = Configuration.EnableAutoUpdate, UpdateClass = Configuration.UpdateClass, diff --git a/MediaBrowser.Common/Plugins/IPlugin.cs b/MediaBrowser.Common/Plugins/IPlugin.cs index ace82d83fc..12aaa3fe73 100644 --- a/MediaBrowser.Common/Plugins/IPlugin.cs +++ b/MediaBrowser.Common/Plugins/IPlugin.cs @@ -20,12 +20,6 @@ namespace MediaBrowser.Common.Plugins /// The description. string Description { get; } - /// - /// Gets a value indicating whether this instance is a core plugin. - /// - /// true if this instance is a core plugin; otherwise, false. - bool IsCorePlugin { get; } - /// /// Gets the type of configuration this plugin uses /// diff --git a/MediaBrowser.Model/Plugins/PluginInfo.cs b/MediaBrowser.Model/Plugins/PluginInfo.cs index 0fe6fb6dba..4aa5f5a5c3 100644 --- a/MediaBrowser.Model/Plugins/PluginInfo.cs +++ b/MediaBrowser.Model/Plugins/PluginInfo.cs @@ -59,13 +59,6 @@ namespace MediaBrowser.Model.Plugins [ProtoMember(7)] public string Description { get; set; } - /// - /// Gets or sets a value indicating whether this instance is core plugin. - /// - /// true if this instance is core plugin; otherwise, false. - [ProtoMember(8)] - public bool IsCorePlugin { get; set; } - /// /// Gets or sets the unique id. /// diff --git a/MediaBrowser.Server.Implementations/Updates/InstallationManager.cs b/MediaBrowser.Server.Implementations/Updates/InstallationManager.cs index bfba00a8c6..e17ed03016 100644 --- a/MediaBrowser.Server.Implementations/Updates/InstallationManager.cs +++ b/MediaBrowser.Server.Implementations/Updates/InstallationManager.cs @@ -445,11 +445,6 @@ namespace MediaBrowser.Server.Implementations.Updates /// public void UninstallPlugin(IPlugin plugin) { - if (plugin.IsCorePlugin) - { - throw new ArgumentException(string.Format("{0} cannot be uninstalled because it is a core plugin.", plugin.Name)); - } - plugin.OnUninstalling(); // Remove it the quick way for now diff --git a/MediaBrowser.WebDashboard/Html/scripts/PluginUpdatesPage.js b/MediaBrowser.WebDashboard/Html/scripts/PluginUpdatesPage.js index a89169c53b..56bc6b4cf8 100644 --- a/MediaBrowser.WebDashboard/Html/scripts/PluginUpdatesPage.js +++ b/MediaBrowser.WebDashboard/Html/scripts/PluginUpdatesPage.js @@ -12,11 +12,6 @@ loadPlugins: function (plugins) { - plugins = plugins.filter(function (p) { - - return !p.IsCorePlugin; - }); - var elem = $('#tbodyPluginUpdates', $.mobile.activePage).html(''); for (var i = 0, length = plugins.length; i < length; i++) { diff --git a/MediaBrowser.WebDashboard/Html/scripts/PluginsPage.js b/MediaBrowser.WebDashboard/Html/scripts/PluginsPage.js index e9098427dd..c8ffe02d8f 100644 --- a/MediaBrowser.WebDashboard/Html/scripts/PluginsPage.js +++ b/MediaBrowser.WebDashboard/Html/scripts/PluginsPage.js @@ -25,7 +25,7 @@ plugins = plugins.sort(function (plugin1, plugin2) { - return (plugin1.IsCorePlugin.toString() + plugin1.Name) > (plugin2.IsCorePlugin.toString() + plugin2.Name) ? 1 : -1; + return (plugin1.Name) > (plugin2.Name) ? 1 : -1; }); @@ -35,10 +35,6 @@ var plugin = plugins[i]; - if (plugin.IsCorePlugin) { - continue; - } - var configPage = $.grep(pluginConfigurationPages, function (pluginConfigurationPage) { return pluginConfigurationPage.PluginId == plugin.Id; })[0]; @@ -55,9 +51,7 @@ html += ""; - if (!plugin.IsCorePlugin) { - html += "Delete"; - } + html += "Delete"; html += ""; }