From 1616aa87bdbad5df0eb4d4d1b4d3d1c1b8bc9ed3 Mon Sep 17 00:00:00 2001 From: bao-qian Date: Sat, 31 Oct 2015 18:20:43 +0000 Subject: [PATCH] Remove PluginDebugger --- Wox.Core/Plugin/PluginConfig.cs | 5 ----- Wox.Core/Plugin/PluginManager.cs | 9 +-------- Wox/CommandArgs/PluginDebuggerCommandArg.cs | 22 --------------------- Wox/Wox.csproj | 1 - 4 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 Wox/CommandArgs/PluginDebuggerCommandArg.cs diff --git a/Wox.Core/Plugin/PluginConfig.cs b/Wox.Core/Plugin/PluginConfig.cs index 6824495844..2b89a9653e 100644 --- a/Wox.Core/Plugin/PluginConfig.cs +++ b/Wox.Core/Plugin/PluginConfig.cs @@ -28,11 +28,6 @@ namespace Wox.Core.Plugin ParsePluginConfigs(pluginDirectory); } - if (PluginManager.DebuggerMode != null) - { - PluginMetadata metadata = GetPluginMetadata(PluginManager.DebuggerMode); - if (metadata != null) pluginMetadatas.Add(metadata); - } return pluginMetadatas; } diff --git a/Wox.Core/Plugin/PluginManager.cs b/Wox.Core/Plugin/PluginManager.cs index cd5a0ca20f..9fcd7a36b1 100644 --- a/Wox.Core/Plugin/PluginManager.cs +++ b/Wox.Core/Plugin/PluginManager.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; @@ -28,7 +27,6 @@ namespace Wox.Core.Plugin private static List> exclusiveSearchPlugins; private static List> contextMenuPlugins; - public static String DebuggerMode { get; private set; } public static IPublicAPI API { get; private set; } private static List plugins = new List(); @@ -167,11 +165,6 @@ namespace Wox.Core.Plugin return metadata.ActionKeyword == ActionKeywordWildcardSign; } - public static void ActivatePluginDebugger(string path) - { - DebuggerMode = path; - } - public static bool IsInstantQuery(string query) { return LoadInstantSearches().Any(o => o.Value.IsInstantQuery(query)); diff --git a/Wox/CommandArgs/PluginDebuggerCommandArg.cs b/Wox/CommandArgs/PluginDebuggerCommandArg.cs deleted file mode 100644 index 0338840788..0000000000 --- a/Wox/CommandArgs/PluginDebuggerCommandArg.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System.Collections.Generic; -using Wox.Core.Plugin; - -namespace Wox.CommandArgs -{ - public class PluginDebuggerCommandArg : ICommandArg - { - public string Command - { - get { return "plugindebugger"; } - } - - public void Execute(IList args) - { - if (args.Count > 0) - { - var pluginFolderPath = args[0]; - PluginManager.ActivatePluginDebugger(pluginFolderPath); - } - } - } -} diff --git a/Wox/Wox.csproj b/Wox/Wox.csproj index 5221f7090b..9e31d96248 100644 --- a/Wox/Wox.csproj +++ b/Wox/Wox.csproj @@ -134,7 +134,6 @@ -