aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Startup.Common/Migrations/DeprecatePlugins.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Server.Startup.Common/Migrations/DeprecatePlugins.cs')
-rw-r--r--MediaBrowser.Server.Startup.Common/Migrations/DeprecatePlugins.cs36
1 files changed, 0 insertions, 36 deletions
diff --git a/MediaBrowser.Server.Startup.Common/Migrations/DeprecatePlugins.cs b/MediaBrowser.Server.Startup.Common/Migrations/DeprecatePlugins.cs
deleted file mode 100644
index a7f1d332e..000000000
--- a/MediaBrowser.Server.Startup.Common/Migrations/DeprecatePlugins.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using MediaBrowser.Common.IO;
-using MediaBrowser.Controller;
-using System.IO;
-using CommonIO;
-
-namespace MediaBrowser.Server.Startup.Common.Migrations
-{
- public class DeprecatePlugins : IVersionMigration
- {
- private readonly IServerApplicationPaths _appPaths;
- private readonly IFileSystem _fileSystem;
-
- public DeprecatePlugins(IServerApplicationPaths appPaths, IFileSystem fileSystem)
- {
- _appPaths = appPaths;
- _fileSystem = fileSystem;
- }
-
- public void Run()
- {
- RemovePlugin("MediaBrowser.Plugins.LocalTrailers.dll");
- }
-
- private void RemovePlugin(string filename)
- {
- try
- {
- _fileSystem.DeleteFile(Path.Combine(_appPaths.PluginsPath, filename));
- }
- catch
- {
-
- }
- }
- }
-}