From ad8b6c806dbee7815e0289a620889e243c99c25c Mon Sep 17 00:00:00 2001 From: bao-qian Date: Fri, 30 Oct 2015 23:17:34 +0000 Subject: [PATCH] Optimize using directives --- Plugins/Wox.Plugin.CMD/CMD.cs | 2 -- Plugins/Wox.Plugin.CMD/CMDStorage.cs | 2 +- .../ContextMenuStorage.cs | 9 +++------ Plugins/Wox.Plugin.Everything/Main.cs | 2 +- Plugins/Wox.Plugin.Folder/FolderPlugin.cs | 2 +- Plugins/Wox.Plugin.Folder/FolderStorage.cs | 7 ++----- .../HttpRequest.cs | 1 - .../AddProgramSource.xaml.cs | 14 +------------- .../Wox.Plugin.Program/FileChangeWatcher.cs | 1 - .../ProgramSources/FileSystemProgramSource.cs | 2 +- Plugins/Wox.Plugin.Program/ProgramStorage.cs | 7 ++----- Plugins/Wox.Plugin.Program/Programs.cs | 6 ++---- Plugins/Wox.Plugin.Sys/Sys.cs | 2 -- Plugins/Wox.Plugin.WebSearch/EasyTimer.cs | 3 --- .../Wox.Plugin.WebSearch/WebQueryPlugin.cs | 2 -- .../Wox.Plugin.WebSearch/WebSearchStorage.cs | 5 +---- Wox.Core/APIServer.cs | 7 +------ Wox.Core/AssemblyHelper.cs | 2 -- Wox.Core/Exception/ExceptionFormatter.cs | 1 - Wox.Core/Exception/WoxCritialException.cs | 7 +------ Wox.Core/Exception/WoxI18nException.cs | 7 +------ Wox.Core/Exception/WoxPluginException.cs | 7 +------ Wox.Core/Plugin/JsonRPCPlugin.cs | 5 ++--- Wox.Core/Plugin/PluginConfig.cs | 4 +--- Wox.Core/Plugin/PluginInstaller.cs | 2 -- Wox.Core/Plugin/PluginManager.cs | 1 - Wox.Core/Plugin/PythonPlugin.cs | 1 - .../QueryDispatcher/BaseQueryDispatcher.cs | 7 ++----- .../ExclusiveQueryDispatcher.cs | 8 +------- .../QueryDispatcher/GenericQueryDispatcher.cs | 4 ---- .../Plugin/QueryDispatcher/QueryDispatcher.cs | 1 - Wox.Core/Theme/ITheme.cs | 5 +---- Wox.Core/Theme/ThemeManager.cs | 7 +------ Wox.Core/UI/IUIResource.cs | 7 +------ Wox.Core/UI/ResourceMerger.cs | 4 ---- Wox.Core/Updater/UpdaterManager.cs | 6 +----- Wox.Core/Updater/WoxUpdateSource.cs | 3 --- Wox.Core/UserSettings/UserSettingStorage.cs | 6 ++---- Wox.Core/i18n/AvailableLanguages.cs | 5 +---- Wox.Core/i18n/IInternationalization.cs | 5 +---- Wox.Core/i18n/Internationalization.cs | 1 - Wox.Core/i18n/InternationalizationManager.cs | 11 +---------- Wox.Core/i18n/Language.cs | 7 +------ Wox.CrashReporter/CrashReporter.cs | 3 --- Wox.CrashReporter/ReportWindow.xaml.cs | 14 -------------- Wox.Infrastructure/DebugHelper.cs | 6 +----- Wox.Infrastructure/FuzzyMatcher.cs | 6 +----- Wox.Infrastructure/Logger/Log.cs | 1 - Wox.Infrastructure/Storage/BaseStorage.cs | 6 ------ Wox.Infrastructure/Storage/BinaryStorage.cs | 3 --- Wox.Infrastructure/Storage/IStorage.cs | 7 +------ Wox.Infrastructure/Storage/JsonStorage.cs | 3 --- Wox.Infrastructure/StringMatcher.cs | 7 +------ Wox.Infrastructure/Timeit.cs | 3 --- Wox.Infrastructure/Unidecoder.cs | 2 -- Wox.Infrastructure/WindowsShellRun.cs | 6 ++---- Wox.Plugin/AllowedLanguage.cs | 7 +------ Wox.Plugin/EventHandler.cs | 6 +----- Wox.Plugin/Features/IContextMenu.cs | 5 +---- Wox.Plugin/Features/IExclusiveQuery.cs | 7 +------ Wox.Plugin/IPluginI18n.cs | 8 +------- Wox.Plugin/IPublicAPI.cs | 4 +--- Wox.Plugin/ISettingProvider.cs | 6 +----- Wox.Plugin/PluginInitContext.cs | 7 +------ Wox.Plugin/PluginMetadata.cs | 4 ---- Wox.Plugin/PluginPair.cs | 7 +------ Wox.Plugin/Result.cs | 1 - Wox.Test/FuzzyMatcherTest.cs | 4 +--- Wox.Test/Plugins/PluginInitTest.cs | 7 +------ Wox.Test/QueryTest.cs | 7 +------ Wox.Test/SemanticVersionTest.cs | 6 +----- Wox.Test/UrlPluginTest.cs | 6 +----- Wox.UpdateFeedGenerator/ConfigStorage.cs | 6 +----- Wox.UpdateFeedGenerator/Program.cs | 12 +----------- Wox/ActionKeyword.xaml.cs | 14 +------------- Wox/App.xaml.cs | 6 +----- Wox/CommandArgs/CommandArgsFactory.cs | 2 -- Wox/CommandArgs/HideStartCommandArg.cs | 5 +---- Wox/CommandArgs/ICommandArg.cs | 5 +---- Wox/CommandArgs/InstallPluginCommandArg.cs | 6 +----- Wox/CommandArgs/PluginDebuggerCommandArg.cs | 6 +----- Wox/CommandArgs/QueryCommandArg.cs | 2 -- Wox/CommandArgs/ReloadPluginCommandArg.cs | 5 +---- Wox/CommandArgs/ToggleCommandArg.cs | 5 +---- Wox/Converters/ImagePathConverter.cs | 4 ---- Wox/Helper/DWMDropShadow.cs | 1 - Wox/Helper/DataWebRequestFactory.cs | 3 --- Wox/Helper/DispatcherExtensions.cs | 2 -- Wox/Helper/ErrorReporting.cs | 4 ---- Wox/Helper/SingletonWindowOpener.cs | 2 -- Wox/Helper/SyntaxSugars.cs | 3 --- Wox/ImageLoader/ImageCacheStroage.cs | 1 - Wox/MainWindow.xaml.cs | 1 - Wox/Msg.xaml.cs | 9 --------- Wox/ResultPanel.xaml.cs | 1 - Wox/SettingWindow.xaml.cs | 19 +++++-------------- Wox/Storage/TopMostRecordStorage.cs | 4 +--- Wox/Storage/UserSelectedRecordStorage.cs | 7 +++---- 98 files changed, 74 insertions(+), 418 deletions(-) diff --git a/Plugins/Wox.Plugin.CMD/CMD.cs b/Plugins/Wox.Plugin.CMD/CMD.cs index e95b11d711..6c0f6aeb86 100644 --- a/Plugins/Wox.Plugin.CMD/CMD.cs +++ b/Plugins/Wox.Plugin.CMD/CMD.cs @@ -1,13 +1,11 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Windows.Forms; using WindowsInput; using WindowsInput.Native; -using Wox.Infrastructure; using Wox.Infrastructure.Hotkey; using Wox.Plugin.Features; using Control = System.Windows.Controls.Control; diff --git a/Plugins/Wox.Plugin.CMD/CMDStorage.cs b/Plugins/Wox.Plugin.CMD/CMDStorage.cs index 1d719d17cd..ece62a06ad 100644 --- a/Plugins/Wox.Plugin.CMD/CMDStorage.cs +++ b/Plugins/Wox.Plugin.CMD/CMDStorage.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; +using System.IO; using System.Reflection; using Newtonsoft.Json; using Wox.Infrastructure.Storage; -using System.IO; namespace Wox.Plugin.CMD { diff --git a/Plugins/Wox.Plugin.Everything/ContextMenuStorage.cs b/Plugins/Wox.Plugin.Everything/ContextMenuStorage.cs index 1970e39a7c..bbb0d33753 100644 --- a/Plugins/Wox.Plugin.Everything/ContextMenuStorage.cs +++ b/Plugins/Wox.Plugin.Everything/ContextMenuStorage.cs @@ -1,11 +1,8 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Newtonsoft.Json; -using Wox.Infrastructure.Storage; +using System.Collections.Generic; using System.IO; using System.Reflection; +using Newtonsoft.Json; +using Wox.Infrastructure.Storage; namespace Wox.Plugin.Everything { diff --git a/Plugins/Wox.Plugin.Everything/Main.cs b/Plugins/Wox.Plugin.Everything/Main.cs index 4318485e6e..5aec121eb6 100644 --- a/Plugins/Wox.Plugin.Everything/Main.cs +++ b/Plugins/Wox.Plugin.Everything/Main.cs @@ -3,9 +3,9 @@ using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; +using System.Reflection; using System.ServiceProcess; using Wox.Infrastructure; -using System.Reflection; using Wox.Plugin.Everything.Everything; using Wox.Plugin.Features; diff --git a/Plugins/Wox.Plugin.Folder/FolderPlugin.cs b/Plugins/Wox.Plugin.Folder/FolderPlugin.cs index 622acac0d3..21c2875e89 100644 --- a/Plugins/Wox.Plugin.Folder/FolderPlugin.cs +++ b/Plugins/Wox.Plugin.Folder/FolderPlugin.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; using System.Reflection; using System.Windows; -using Control = System.Windows.Controls.Control; +using System.Windows.Controls; namespace Wox.Plugin.Folder { diff --git a/Plugins/Wox.Plugin.Folder/FolderStorage.cs b/Plugins/Wox.Plugin.Folder/FolderStorage.cs index e22d560983..815643c9d8 100644 --- a/Plugins/Wox.Plugin.Folder/FolderStorage.cs +++ b/Plugins/Wox.Plugin.Folder/FolderStorage.cs @@ -1,11 +1,8 @@ -using System; -using System.Collections.Generic; -using System.Linq; +using System.Collections.Generic; +using System.IO; using System.Reflection; -using System.Text; using Newtonsoft.Json; using Wox.Infrastructure.Storage; -using System.IO; namespace Wox.Plugin.Folder { diff --git a/Plugins/Wox.Plugin.PluginManagement/HttpRequest.cs b/Plugins/Wox.Plugin.PluginManagement/HttpRequest.cs index 40f5963224..27c7acabf5 100644 --- a/Plugins/Wox.Plugin.PluginManagement/HttpRequest.cs +++ b/Plugins/Wox.Plugin.PluginManagement/HttpRequest.cs @@ -1,7 +1,6 @@ using System; using System.Net; - namespace Wox.Plugin.PluginManagement { public class HttpRequest diff --git a/Plugins/Wox.Plugin.Program/AddProgramSource.xaml.cs b/Plugins/Wox.Plugin.Program/AddProgramSource.xaml.cs index c93df57d13..45fa4f44c4 100644 --- a/Plugins/Wox.Plugin.Program/AddProgramSource.xaml.cs +++ b/Plugins/Wox.Plugin.Program/AddProgramSource.xaml.cs @@ -1,16 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; +using System.Windows; namespace Wox.Plugin.Program { diff --git a/Plugins/Wox.Plugin.Program/FileChangeWatcher.cs b/Plugins/Wox.Plugin.Program/FileChangeWatcher.cs index c6f6ec5469..a493365b0d 100644 --- a/Plugins/Wox.Plugin.Program/FileChangeWatcher.cs +++ b/Plugins/Wox.Plugin.Program/FileChangeWatcher.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Threading; using Wox.Infrastructure; diff --git a/Plugins/Wox.Plugin.Program/ProgramSources/FileSystemProgramSource.cs b/Plugins/Wox.Plugin.Program/ProgramSources/FileSystemProgramSource.cs index b1ef2dcd4c..cb0cf7e765 100644 --- a/Plugins/Wox.Plugin.Program/ProgramSources/FileSystemProgramSource.cs +++ b/Plugins/Wox.Plugin.Program/ProgramSources/FileSystemProgramSource.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using Log = Wox.Infrastructure.Logger.Log; +using Wox.Infrastructure.Logger; namespace Wox.Plugin.Program.ProgramSources { diff --git a/Plugins/Wox.Plugin.Program/ProgramStorage.cs b/Plugins/Wox.Plugin.Program/ProgramStorage.cs index a274237f87..d533443f01 100644 --- a/Plugins/Wox.Plugin.Program/ProgramStorage.cs +++ b/Plugins/Wox.Plugin.Program/ProgramStorage.cs @@ -1,12 +1,9 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; +using System.ComponentModel; using System.IO; -using System.Linq; using System.Reflection; -using System.Text; using Newtonsoft.Json; using Wox.Infrastructure.Storage; -using System.ComponentModel; namespace Wox.Plugin.Program { diff --git a/Plugins/Wox.Plugin.Program/Programs.cs b/Plugins/Wox.Plugin.Program/Programs.cs index d6a3a35183..1b1ee94485 100644 --- a/Plugins/Wox.Plugin.Program/Programs.cs +++ b/Plugins/Wox.Plugin.Program/Programs.cs @@ -1,15 +1,13 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; -using System.Threading; using System.Windows; -using Wox.Infrastructure; -using Wox.Plugin.Program.ProgramSources; using IWshRuntimeLibrary; +using Wox.Infrastructure; using Wox.Plugin.Features; +using Wox.Plugin.Program.ProgramSources; namespace Wox.Plugin.Program { diff --git a/Plugins/Wox.Plugin.Sys/Sys.cs b/Plugins/Wox.Plugin.Sys/Sys.cs index 374bd2a64b..bc3db80b63 100644 --- a/Plugins/Wox.Plugin.Sys/Sys.cs +++ b/Plugins/Wox.Plugin.Sys/Sys.cs @@ -5,8 +5,6 @@ using System.Reflection; using System.Runtime.InteropServices; using System.Windows.Forms; using Wox.Infrastructure; -using System.Runtime.InteropServices; -using System.Windows.Forms; using Control = System.Windows.Controls.Control; namespace Wox.Plugin.Sys diff --git a/Plugins/Wox.Plugin.WebSearch/EasyTimer.cs b/Plugins/Wox.Plugin.WebSearch/EasyTimer.cs index 78cfb5d6e5..49c31e63d3 100644 --- a/Plugins/Wox.Plugin.WebSearch/EasyTimer.cs +++ b/Plugins/Wox.Plugin.WebSearch/EasyTimer.cs @@ -1,7 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; namespace Wox.Plugin.WebSearch { diff --git a/Plugins/Wox.Plugin.WebSearch/WebQueryPlugin.cs b/Plugins/Wox.Plugin.WebSearch/WebQueryPlugin.cs index 7f4412f3d3..7e85b12df3 100644 --- a/Plugins/Wox.Plugin.WebSearch/WebQueryPlugin.cs +++ b/Plugins/Wox.Plugin.WebSearch/WebQueryPlugin.cs @@ -4,8 +4,6 @@ using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; -using System.Timers; -using System.Windows.Threading; using Wox.Plugin.Features; using Wox.Plugin.WebSearch.SuggestionSources; diff --git a/Plugins/Wox.Plugin.WebSearch/WebSearchStorage.cs b/Plugins/Wox.Plugin.WebSearch/WebSearchStorage.cs index 2a75abe201..a91a59198e 100644 --- a/Plugins/Wox.Plugin.WebSearch/WebSearchStorage.cs +++ b/Plugins/Wox.Plugin.WebSearch/WebSearchStorage.cs @@ -1,9 +1,6 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.IO; -using System.Linq; using System.Reflection; -using System.Text; using Newtonsoft.Json; using Wox.Infrastructure.Storage; diff --git a/Wox.Core/APIServer.cs b/Wox.Core/APIServer.cs index 8aec75068e..7830d091ae 100644 --- a/Wox.Core/APIServer.cs +++ b/Wox.Core/APIServer.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Wox.Core +namespace Wox.Core { public static class APIServer { diff --git a/Wox.Core/AssemblyHelper.cs b/Wox.Core/AssemblyHelper.cs index ac972ff556..dd47eb73b5 100644 --- a/Wox.Core/AssemblyHelper.cs +++ b/Wox.Core/AssemblyHelper.cs @@ -1,9 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Reflection; using Wox.Core.Plugin; -using Wox.Infrastructure.Logger; using Wox.Plugin; namespace Wox.Core diff --git a/Wox.Core/Exception/ExceptionFormatter.cs b/Wox.Core/Exception/ExceptionFormatter.cs index 7db7b07a03..d4e8beb8a8 100644 --- a/Wox.Core/Exception/ExceptionFormatter.cs +++ b/Wox.Core/Exception/ExceptionFormatter.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Linq; using System.Text; using System.Xml; diff --git a/Wox.Core/Exception/WoxCritialException.cs b/Wox.Core/Exception/WoxCritialException.cs index 76aea3dea6..cf840f9b19 100644 --- a/Wox.Core/Exception/WoxCritialException.cs +++ b/Wox.Core/Exception/WoxCritialException.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Wox.Core.Exception +namespace Wox.Core.Exception { /// /// Represent exceptions that wox can't handle and MUST close running Wox. diff --git a/Wox.Core/Exception/WoxI18nException.cs b/Wox.Core/Exception/WoxI18nException.cs index e095c78995..72b62df988 100644 --- a/Wox.Core/Exception/WoxI18nException.cs +++ b/Wox.Core/Exception/WoxI18nException.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Wox.Core.Exception +namespace Wox.Core.Exception { public class WoxI18nException:WoxException { diff --git a/Wox.Core/Exception/WoxPluginException.cs b/Wox.Core/Exception/WoxPluginException.cs index 1134460321..e435be5cdd 100644 --- a/Wox.Core/Exception/WoxPluginException.cs +++ b/Wox.Core/Exception/WoxPluginException.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Wox.Core.Exception +namespace Wox.Core.Exception { public class WoxPluginException : WoxException { diff --git a/Wox.Core/Plugin/JsonRPCPlugin.cs b/Wox.Core/Plugin/JsonRPCPlugin.cs index 877ff10e9b..6f65d78c93 100644 --- a/Wox.Core/Plugin/JsonRPCPlugin.cs +++ b/Wox.Core/Plugin/JsonRPCPlugin.cs @@ -1,14 +1,13 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Reflection; using System.Threading; using System.Windows.Forms; using Newtonsoft.Json; +using Wox.Core.Exception; using Wox.Infrastructure.Logger; using Wox.Plugin; -using Wox.Core.Exception; namespace Wox.Core.Plugin { diff --git a/Wox.Core/Plugin/PluginConfig.cs b/Wox.Core/Plugin/PluginConfig.cs index f47e1dac01..6824495844 100644 --- a/Wox.Core/Plugin/PluginConfig.cs +++ b/Wox.Core/Plugin/PluginConfig.cs @@ -1,8 +1,6 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.IO; using System.Linq; -using System.Reflection; using Newtonsoft.Json; using Wox.Core.Exception; using Wox.Core.UserSettings; diff --git a/Wox.Core/Plugin/PluginInstaller.cs b/Wox.Core/Plugin/PluginInstaller.cs index 77577aa9b1..b26254576f 100644 --- a/Wox.Core/Plugin/PluginInstaller.cs +++ b/Wox.Core/Plugin/PluginInstaller.cs @@ -1,12 +1,10 @@ using System; using System.Diagnostics; using System.IO; -using System.Windows; using System.Windows.Forms; using ICSharpCode.SharpZipLib.Zip; using Newtonsoft.Json; using Wox.Plugin; -using MessageBox = System.Windows.Forms.MessageBox; namespace Wox.Core.Plugin { diff --git a/Wox.Core/Plugin/PluginManager.cs b/Wox.Core/Plugin/PluginManager.cs index b681463f47..9b38913165 100644 --- a/Wox.Core/Plugin/PluginManager.cs +++ b/Wox.Core/Plugin/PluginManager.cs @@ -10,7 +10,6 @@ using Wox.Core.i18n; using Wox.Core.UI; using Wox.Core.UserSettings; using Wox.Infrastructure; -using Wox.Infrastructure.Http; using Wox.Infrastructure.Logger; using Wox.Plugin; using Wox.Plugin.Features; diff --git a/Wox.Core/Plugin/PythonPlugin.cs b/Wox.Core/Plugin/PythonPlugin.cs index 20487de0a2..bf1edb4c16 100644 --- a/Wox.Core/Plugin/PythonPlugin.cs +++ b/Wox.Core/Plugin/PythonPlugin.cs @@ -2,7 +2,6 @@ using System.IO; using System.Reflection; using Wox.Core.UserSettings; -using Wox.Infrastructure.Http; using Wox.Plugin; namespace Wox.Core.Plugin diff --git a/Wox.Core/Plugin/QueryDispatcher/BaseQueryDispatcher.cs b/Wox.Core/Plugin/QueryDispatcher/BaseQueryDispatcher.cs index b17875b6ef..35bf8bbac2 100644 --- a/Wox.Core/Plugin/QueryDispatcher/BaseQueryDispatcher.cs +++ b/Wox.Core/Plugin/QueryDispatcher/BaseQueryDispatcher.cs @@ -1,12 +1,9 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; +using System.Collections.Generic; using System.Linq; -using System.Text; using System.Threading; +using Wox.Core.UserSettings; using Wox.Infrastructure; using Wox.Plugin; -using Wox.Core.UserSettings; namespace Wox.Core.Plugin.QueryDispatcher { diff --git a/Wox.Core/Plugin/QueryDispatcher/ExclusiveQueryDispatcher.cs b/Wox.Core/Plugin/QueryDispatcher/ExclusiveQueryDispatcher.cs index d0923c34c1..f31ae2ac92 100644 --- a/Wox.Core/Plugin/QueryDispatcher/ExclusiveQueryDispatcher.cs +++ b/Wox.Core/Plugin/QueryDispatcher/ExclusiveQueryDispatcher.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using Wox.Core.Exception; -using Wox.Core.UserSettings; -using Wox.Infrastructure.Logger; +using System.Collections.Generic; using Wox.Plugin; namespace Wox.Core.Plugin.QueryDispatcher diff --git a/Wox.Core/Plugin/QueryDispatcher/GenericQueryDispatcher.cs b/Wox.Core/Plugin/QueryDispatcher/GenericQueryDispatcher.cs index 5c53c556b8..9787930982 100644 --- a/Wox.Core/Plugin/QueryDispatcher/GenericQueryDispatcher.cs +++ b/Wox.Core/Plugin/QueryDispatcher/GenericQueryDispatcher.cs @@ -1,9 +1,5 @@ using System.Collections.Generic; using System.Linq; -using System.Threading; -using Wox.Core.Exception; -using Wox.Core.UserSettings; -using Wox.Infrastructure.Logger; using Wox.Plugin; namespace Wox.Core.Plugin.QueryDispatcher diff --git a/Wox.Core/Plugin/QueryDispatcher/QueryDispatcher.cs b/Wox.Core/Plugin/QueryDispatcher/QueryDispatcher.cs index 5d2062b48e..5d2cc0e413 100644 --- a/Wox.Core/Plugin/QueryDispatcher/QueryDispatcher.cs +++ b/Wox.Core/Plugin/QueryDispatcher/QueryDispatcher.cs @@ -1,5 +1,4 @@  -using System.Threading; using Wox.Plugin; namespace Wox.Core.Plugin.QueryDispatcher diff --git a/Wox.Core/Theme/ITheme.cs b/Wox.Core/Theme/ITheme.cs index 55bfccb21d..34409068e6 100644 --- a/Wox.Core/Theme/ITheme.cs +++ b/Wox.Core/Theme/ITheme.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +using System.Collections.Generic; namespace Wox.Core.Theme { diff --git a/Wox.Core/Theme/ThemeManager.cs b/Wox.Core/Theme/ThemeManager.cs index a5dc1a2f9f..3ad8a0d7d7 100644 --- a/Wox.Core/Theme/ThemeManager.cs +++ b/Wox.Core/Theme/ThemeManager.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Wox.Core.Theme +namespace Wox.Core.Theme { public class ThemeManager { diff --git a/Wox.Core/UI/IUIResource.cs b/Wox.Core/UI/IUIResource.cs index a1e398a25c..99d89551a6 100644 --- a/Wox.Core/UI/IUIResource.cs +++ b/Wox.Core/UI/IUIResource.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Windows; -using Wox.Core.i18n; +using System.Windows; namespace Wox.Core.UI { diff --git a/Wox.Core/UI/ResourceMerger.cs b/Wox.Core/UI/ResourceMerger.cs index 542200ede2..6ad940c3f5 100644 --- a/Wox.Core/UI/ResourceMerger.cs +++ b/Wox.Core/UI/ResourceMerger.cs @@ -1,10 +1,6 @@ using System; -using System.Collections.Generic; -using System.Linq; using System.Windows; using Wox.Core.i18n; -using Wox.Core.Plugin; -using Wox.Core.Theme; using Wox.Plugin; namespace Wox.Core.UI diff --git a/Wox.Core/Updater/UpdaterManager.cs b/Wox.Core/Updater/UpdaterManager.cs index f93f9a3487..65778896a0 100644 --- a/Wox.Core/Updater/UpdaterManager.cs +++ b/Wox.Core/Updater/UpdaterManager.cs @@ -1,11 +1,8 @@ using System; using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Net; using System.Reflection; +using System.Threading; using System.Windows.Forms; -using System.Windows.Threading; using NAppUpdate.Framework; using NAppUpdate.Framework.Common; using NAppUpdate.Framework.Sources; @@ -15,7 +12,6 @@ using Wox.Core.i18n; using Wox.Core.UserSettings; using Wox.Infrastructure.Http; using Wox.Infrastructure.Logger; -using System.Threading; namespace Wox.Core.Updater { diff --git a/Wox.Core/Updater/WoxUpdateSource.cs b/Wox.Core/Updater/WoxUpdateSource.cs index 20b66e2f66..192bf9d2bc 100644 --- a/Wox.Core/Updater/WoxUpdateSource.cs +++ b/Wox.Core/Updater/WoxUpdateSource.cs @@ -1,9 +1,6 @@ using System; -using System.Collections.Generic; using System.IO; -using System.Linq; using System.Net; -using System.Text; using NAppUpdate.Framework.Common; using NAppUpdate.Framework.Sources; using NAppUpdate.Framework.Utils; diff --git a/Wox.Core/UserSettings/UserSettingStorage.cs b/Wox.Core/UserSettings/UserSettingStorage.cs index 632aaaa507..3af1911324 100644 --- a/Wox.Core/UserSettings/UserSettingStorage.cs +++ b/Wox.Core/UserSettings/UserSettingStorage.cs @@ -1,12 +1,10 @@ using System; using System.Collections.Generic; +using System.Drawing; using System.IO; -using System.Windows.Forms; +using System.Reflection; using Newtonsoft.Json; using Wox.Infrastructure.Storage; -using Wox.Plugin; -using System.Drawing; -using System.Reflection; namespace Wox.Core.UserSettings { diff --git a/Wox.Core/i18n/AvailableLanguages.cs b/Wox.Core/i18n/AvailableLanguages.cs index a9805e174e..3879fc9cd8 100644 --- a/Wox.Core/i18n/AvailableLanguages.cs +++ b/Wox.Core/i18n/AvailableLanguages.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +using System.Collections.Generic; namespace Wox.Core.i18n { diff --git a/Wox.Core/i18n/IInternationalization.cs b/Wox.Core/i18n/IInternationalization.cs index 23335d7e97..5ab83c1327 100644 --- a/Wox.Core/i18n/IInternationalization.cs +++ b/Wox.Core/i18n/IInternationalization.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +using System.Collections.Generic; namespace Wox.Core.i18n { diff --git a/Wox.Core/i18n/Internationalization.cs b/Wox.Core/i18n/Internationalization.cs index bf2157603e..cf9878fd7d 100644 --- a/Wox.Core/i18n/Internationalization.cs +++ b/Wox.Core/i18n/Internationalization.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; -using System.Text; using System.Windows; using Wox.Core.Exception; using Wox.Core.UI; diff --git a/Wox.Core/i18n/InternationalizationManager.cs b/Wox.Core/i18n/InternationalizationManager.cs index cfe1ca7fc7..999ae9e327 100644 --- a/Wox.Core/i18n/InternationalizationManager.cs +++ b/Wox.Core/i18n/InternationalizationManager.cs @@ -1,13 +1,4 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Reflection; -using System.Windows; -using Wox.Core.UI; -using Wox.Infrastructure.Logger; - -namespace Wox.Core.i18n +namespace Wox.Core.i18n { public static class InternationalizationManager { diff --git a/Wox.Core/i18n/Language.cs b/Wox.Core/i18n/Language.cs index 5b9213149a..6caefeedd1 100644 --- a/Wox.Core/i18n/Language.cs +++ b/Wox.Core/i18n/Language.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Wox.Core.i18n +namespace Wox.Core.i18n { public class Language { diff --git a/Wox.CrashReporter/CrashReporter.cs b/Wox.CrashReporter/CrashReporter.cs index 41f4fc9b97..ff06c57e39 100644 --- a/Wox.CrashReporter/CrashReporter.cs +++ b/Wox.CrashReporter/CrashReporter.cs @@ -1,7 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; namespace Wox.CrashReporter { diff --git a/Wox.CrashReporter/ReportWindow.xaml.cs b/Wox.CrashReporter/ReportWindow.xaml.cs index f2d408368f..15a76abe11 100644 --- a/Wox.CrashReporter/ReportWindow.xaml.cs +++ b/Wox.CrashReporter/ReportWindow.xaml.cs @@ -1,24 +1,10 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading; using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; using Exceptionless; -using Wox.Core; -using Wox.Core.Exception; using Wox.Core.i18n; -using Wox.Core.UI; using Wox.Core.Updater; -using Wox.Core.UserSettings; namespace Wox.CrashReporter { diff --git a/Wox.Infrastructure/DebugHelper.cs b/Wox.Infrastructure/DebugHelper.cs index e31636b7e1..447071abf1 100644 --- a/Wox.Infrastructure/DebugHelper.cs +++ b/Wox.Infrastructure/DebugHelper.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Text; +using System.Diagnostics; namespace Wox.Infrastructure { diff --git a/Wox.Infrastructure/FuzzyMatcher.cs b/Wox.Infrastructure/FuzzyMatcher.cs index 0da5c89a5e..31280ad9de 100644 --- a/Wox.Infrastructure/FuzzyMatcher.cs +++ b/Wox.Infrastructure/FuzzyMatcher.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.RegularExpressions; +using System.Text; namespace Wox.Infrastructure { diff --git a/Wox.Infrastructure/Logger/Log.cs b/Wox.Infrastructure/Logger/Log.cs index 8cfbc52bd5..8abaf16a4f 100644 --- a/Wox.Infrastructure/Logger/Log.cs +++ b/Wox.Infrastructure/Logger/Log.cs @@ -1,5 +1,4 @@ using System; -using System.Reflection; using NLog; namespace Wox.Infrastructure.Logger diff --git a/Wox.Infrastructure/Storage/BaseStorage.cs b/Wox.Infrastructure/Storage/BaseStorage.cs index a8443b0b08..4ddee08ada 100644 --- a/Wox.Infrastructure/Storage/BaseStorage.cs +++ b/Wox.Infrastructure/Storage/BaseStorage.cs @@ -1,11 +1,5 @@ using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Reflection; -using System.Runtime.InteropServices.ComTypes; -using System.Text; -using Newtonsoft.Json; namespace Wox.Infrastructure.Storage { diff --git a/Wox.Infrastructure/Storage/BinaryStorage.cs b/Wox.Infrastructure/Storage/BinaryStorage.cs index 9ad13bfafb..fb49507ec0 100644 --- a/Wox.Infrastructure/Storage/BinaryStorage.cs +++ b/Wox.Infrastructure/Storage/BinaryStorage.cs @@ -1,11 +1,8 @@ using System; -using System.Collections.Generic; using System.IO; -using System.Linq; using System.Reflection; using System.Runtime.Serialization.Formatters; using System.Runtime.Serialization.Formatters.Binary; -using System.Text; using System.Threading; using Wox.Infrastructure.Logger; diff --git a/Wox.Infrastructure/Storage/IStorage.cs b/Wox.Infrastructure/Storage/IStorage.cs index bb94306f1c..9f305804dd 100644 --- a/Wox.Infrastructure/Storage/IStorage.cs +++ b/Wox.Infrastructure/Storage/IStorage.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Wox.Infrastructure.Storage +namespace Wox.Infrastructure.Storage { public interface IStorage { diff --git a/Wox.Infrastructure/Storage/JsonStorage.cs b/Wox.Infrastructure/Storage/JsonStorage.cs index ca6c0fea09..b01f7277b5 100644 --- a/Wox.Infrastructure/Storage/JsonStorage.cs +++ b/Wox.Infrastructure/Storage/JsonStorage.cs @@ -1,8 +1,5 @@ using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; using System.Threading; using Newtonsoft.Json; diff --git a/Wox.Infrastructure/StringMatcher.cs b/Wox.Infrastructure/StringMatcher.cs index 4d3d9dd5ae..6261d9a067 100644 --- a/Wox.Infrastructure/StringMatcher.cs +++ b/Wox.Infrastructure/StringMatcher.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Wox.Infrastructure +namespace Wox.Infrastructure { public class StringMatcher { diff --git a/Wox.Infrastructure/Timeit.cs b/Wox.Infrastructure/Timeit.cs index 14dd1f62c0..89a8dbbddc 100644 --- a/Wox.Infrastructure/Timeit.cs +++ b/Wox.Infrastructure/Timeit.cs @@ -1,8 +1,5 @@ using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; -using System.Text; namespace Wox.Infrastructure { diff --git a/Wox.Infrastructure/Unidecoder.cs b/Wox.Infrastructure/Unidecoder.cs index ea1f56ef5f..a81247fd6b 100644 --- a/Wox.Infrastructure/Unidecoder.cs +++ b/Wox.Infrastructure/Unidecoder.cs @@ -1,7 +1,5 @@ using System; -using System.Collections.Generic; using System.Linq; -using System.Text; namespace Wox.Infrastructure { diff --git a/Wox.Infrastructure/WindowsShellRun.cs b/Wox.Infrastructure/WindowsShellRun.cs index c0d8f23a8c..9a638a6cc5 100644 --- a/Wox.Infrastructure/WindowsShellRun.cs +++ b/Wox.Infrastructure/WindowsShellRun.cs @@ -1,9 +1,7 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Runtime.InteropServices; using System.IO; +using System.Runtime.InteropServices; +using System.Text; namespace Wox.Infrastructure { diff --git a/Wox.Plugin/AllowedLanguage.cs b/Wox.Plugin/AllowedLanguage.cs index 5c8a220f4e..840792af3a 100644 --- a/Wox.Plugin/AllowedLanguage.cs +++ b/Wox.Plugin/AllowedLanguage.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Wox.Plugin +namespace Wox.Plugin { public static class AllowedLanguage { diff --git a/Wox.Plugin/EventHandler.cs b/Wox.Plugin/EventHandler.cs index 1bbe950a4f..4c1fb0f4c7 100644 --- a/Wox.Plugin/EventHandler.cs +++ b/Wox.Plugin/EventHandler.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Windows; +using System.Windows; using System.Windows.Input; namespace Wox.Plugin diff --git a/Wox.Plugin/Features/IContextMenu.cs b/Wox.Plugin/Features/IContextMenu.cs index 0fa42076b9..ce42446640 100644 --- a/Wox.Plugin/Features/IContextMenu.cs +++ b/Wox.Plugin/Features/IContextMenu.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +using System.Collections.Generic; namespace Wox.Plugin.Features { diff --git a/Wox.Plugin/Features/IExclusiveQuery.cs b/Wox.Plugin/Features/IExclusiveQuery.cs index 6c6acbf5e0..ad816e4bda 100644 --- a/Wox.Plugin/Features/IExclusiveQuery.cs +++ b/Wox.Plugin/Features/IExclusiveQuery.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Wox.Plugin.Features +namespace Wox.Plugin.Features { public interface IExclusiveQuery { diff --git a/Wox.Plugin/IPluginI18n.cs b/Wox.Plugin/IPluginI18n.cs index c1068ccab8..f0bdad2ff5 100644 --- a/Wox.Plugin/IPluginI18n.cs +++ b/Wox.Plugin/IPluginI18n.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; - -namespace Wox.Plugin +namespace Wox.Plugin { /// /// Represent plugins that support internationalization diff --git a/Wox.Plugin/IPublicAPI.cs b/Wox.Plugin/IPublicAPI.cs index d8d6824426..e4ebb3f96b 100644 --- a/Wox.Plugin/IPublicAPI.cs +++ b/Wox.Plugin/IPublicAPI.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Windows.Documents; +using System.Collections.Generic; namespace Wox.Plugin { diff --git a/Wox.Plugin/ISettingProvider.cs b/Wox.Plugin/ISettingProvider.cs index b0542a2a1b..78d77cf572 100644 --- a/Wox.Plugin/ISettingProvider.cs +++ b/Wox.Plugin/ISettingProvider.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Windows.Controls; +using System.Windows.Controls; namespace Wox.Plugin { diff --git a/Wox.Plugin/PluginInitContext.cs b/Wox.Plugin/PluginInitContext.cs index 20fbe79a16..c8e3e04852 100644 --- a/Wox.Plugin/PluginInitContext.cs +++ b/Wox.Plugin/PluginInitContext.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Wox.Plugin +namespace Wox.Plugin { public class PluginInitContext { diff --git a/Wox.Plugin/PluginMetadata.cs b/Wox.Plugin/PluginMetadata.cs index 48e6c024f7..7607fda04f 100644 --- a/Wox.Plugin/PluginMetadata.cs +++ b/Wox.Plugin/PluginMetadata.cs @@ -1,9 +1,5 @@ using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Security.RightsManagement; -using System.Text; namespace Wox.Plugin { diff --git a/Wox.Plugin/PluginPair.cs b/Wox.Plugin/PluginPair.cs index 03aa657ce2..1b5da1b174 100644 --- a/Wox.Plugin/PluginPair.cs +++ b/Wox.Plugin/PluginPair.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Wox.Plugin +namespace Wox.Plugin { public class PluginPair { diff --git a/Wox.Plugin/Result.cs b/Wox.Plugin/Result.cs index 8e55230367..21998ec59c 100644 --- a/Wox.Plugin/Result.cs +++ b/Wox.Plugin/Result.cs @@ -1,5 +1,4 @@ using System; -using System.Collections; using System.Collections.Generic; using System.IO; diff --git a/Wox.Test/FuzzyMatcherTest.cs b/Wox.Test/FuzzyMatcherTest.cs index 72ae160e41..8290b2e06e 100644 --- a/Wox.Test/FuzzyMatcherTest.cs +++ b/Wox.Test/FuzzyMatcherTest.cs @@ -1,7 +1,5 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; -using System.Text; using NUnit.Framework; using Wox.Infrastructure; diff --git a/Wox.Test/Plugins/PluginInitTest.cs b/Wox.Test/Plugins/PluginInitTest.cs index 47c5928fea..3bb5658c5e 100644 --- a/Wox.Test/Plugins/PluginInitTest.cs +++ b/Wox.Test/Plugins/PluginInitTest.cs @@ -1,11 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using NUnit.Framework; +using NUnit.Framework; using Wox.Core.Exception; using Wox.Core.Plugin; -using Wox.Plugin; namespace Wox.Test.Plugins { diff --git a/Wox.Test/QueryTest.cs b/Wox.Test/QueryTest.cs index 03c766d5c7..69aee10a11 100644 --- a/Wox.Test/QueryTest.cs +++ b/Wox.Test/QueryTest.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using NUnit.Framework; -using Wox.Core.Plugin; +using NUnit.Framework; using Wox.Plugin; namespace Wox.Test diff --git a/Wox.Test/SemanticVersionTest.cs b/Wox.Test/SemanticVersionTest.cs index 81e6e5ddac..5b7097b69a 100644 --- a/Wox.Test/SemanticVersionTest.cs +++ b/Wox.Test/SemanticVersionTest.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using NUnit.Framework; +using NUnit.Framework; using Wox.Core.Updater; namespace Wox.Test diff --git a/Wox.Test/UrlPluginTest.cs b/Wox.Test/UrlPluginTest.cs index 754bf41c92..b6952823a0 100644 --- a/Wox.Test/UrlPluginTest.cs +++ b/Wox.Test/UrlPluginTest.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using NUnit.Framework; +using NUnit.Framework; using Wox.Plugin.Url; namespace Wox.Test diff --git a/Wox.UpdateFeedGenerator/ConfigStorage.cs b/Wox.UpdateFeedGenerator/ConfigStorage.cs index bdc6a30f3a..28f0c6c0b1 100644 --- a/Wox.UpdateFeedGenerator/ConfigStorage.cs +++ b/Wox.UpdateFeedGenerator/ConfigStorage.cs @@ -1,9 +1,5 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; +using System.IO; using System.Reflection; -using System.Text; using Newtonsoft.Json; using Wox.Infrastructure.Storage; diff --git a/Wox.UpdateFeedGenerator/Program.cs b/Wox.UpdateFeedGenerator/Program.cs index 62953a2a63..d2b3f274e6 100644 --- a/Wox.UpdateFeedGenerator/Program.cs +++ b/Wox.UpdateFeedGenerator/Program.cs @@ -1,14 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.IO; -using System.Linq; -using System.Reflection; -using System.Text; -using System.Threading; -using System.Xml; - -namespace Wox.UpdateFeedGenerator +namespace Wox.UpdateFeedGenerator { class Program { diff --git a/Wox/ActionKeyword.xaml.cs b/Wox/ActionKeyword.xaml.cs index bc74e381e8..87499a4f25 100644 --- a/Wox/ActionKeyword.xaml.cs +++ b/Wox/ActionKeyword.xaml.cs @@ -1,21 +1,9 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +using System.Linq; using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Forms; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Shapes; using Wox.Core.i18n; using Wox.Core.Plugin; using Wox.Core.UserSettings; using Wox.Plugin; -using MessageBox = System.Windows.MessageBox; namespace Wox { diff --git a/Wox/App.xaml.cs b/Wox/App.xaml.cs index 44b57bb193..5fb45331f8 100644 --- a/Wox/App.xaml.cs +++ b/Wox/App.xaml.cs @@ -1,14 +1,10 @@ using System; using System.Collections.Generic; -using System.IO; using System.Linq; -using System.Threading; +using System.Windows; using Wox.CommandArgs; using Wox.Core.Plugin; using Wox.Helper; -using Application = System.Windows.Application; -using MessageBox = System.Windows.MessageBox; -using StartupEventArgs = System.Windows.StartupEventArgs; namespace Wox { diff --git a/Wox/CommandArgs/CommandArgsFactory.cs b/Wox/CommandArgs/CommandArgsFactory.cs index 1e0f3a0dca..7f2fdfc98b 100644 --- a/Wox/CommandArgs/CommandArgsFactory.cs +++ b/Wox/CommandArgs/CommandArgsFactory.cs @@ -2,8 +2,6 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; -using System.Text; -using System.Windows.Input; namespace Wox.CommandArgs { diff --git a/Wox/CommandArgs/HideStartCommandArg.cs b/Wox/CommandArgs/HideStartCommandArg.cs index b8ed670632..1918858b1f 100644 --- a/Wox/CommandArgs/HideStartCommandArg.cs +++ b/Wox/CommandArgs/HideStartCommandArg.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +using System.Collections.Generic; namespace Wox.CommandArgs { diff --git a/Wox/CommandArgs/ICommandArg.cs b/Wox/CommandArgs/ICommandArg.cs index be6391ce02..11db545571 100644 --- a/Wox/CommandArgs/ICommandArg.cs +++ b/Wox/CommandArgs/ICommandArg.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +using System.Collections.Generic; namespace Wox.CommandArgs { diff --git a/Wox/CommandArgs/InstallPluginCommandArg.cs b/Wox/CommandArgs/InstallPluginCommandArg.cs index e69d20a633..524115b4d6 100644 --- a/Wox/CommandArgs/InstallPluginCommandArg.cs +++ b/Wox/CommandArgs/InstallPluginCommandArg.cs @@ -1,11 +1,7 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; using System.Windows; using Wox.Core.Plugin; -using Wox.Helper; namespace Wox.CommandArgs { diff --git a/Wox/CommandArgs/PluginDebuggerCommandArg.cs b/Wox/CommandArgs/PluginDebuggerCommandArg.cs index dab93500f8..0338840788 100644 --- a/Wox/CommandArgs/PluginDebuggerCommandArg.cs +++ b/Wox/CommandArgs/PluginDebuggerCommandArg.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Windows.Input; +using System.Collections.Generic; using Wox.Core.Plugin; namespace Wox.CommandArgs diff --git a/Wox/CommandArgs/QueryCommandArg.cs b/Wox/CommandArgs/QueryCommandArg.cs index 7e58ace4e2..22f0443528 100644 --- a/Wox/CommandArgs/QueryCommandArg.cs +++ b/Wox/CommandArgs/QueryCommandArg.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; namespace Wox.CommandArgs { diff --git a/Wox/CommandArgs/ReloadPluginCommandArg.cs b/Wox/CommandArgs/ReloadPluginCommandArg.cs index f287e08c85..aec5724c11 100644 --- a/Wox/CommandArgs/ReloadPluginCommandArg.cs +++ b/Wox/CommandArgs/ReloadPluginCommandArg.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +using System.Collections.Generic; using Wox.Core.Plugin; namespace Wox.CommandArgs diff --git a/Wox/CommandArgs/ToggleCommandArg.cs b/Wox/CommandArgs/ToggleCommandArg.cs index 743a3e8874..623648e311 100644 --- a/Wox/CommandArgs/ToggleCommandArg.cs +++ b/Wox/CommandArgs/ToggleCommandArg.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +using System.Collections.Generic; namespace Wox.CommandArgs { diff --git a/Wox/Converters/ImagePathConverter.cs b/Wox/Converters/ImagePathConverter.cs index 20843a6864..eb92e62514 100644 --- a/Wox/Converters/ImagePathConverter.cs +++ b/Wox/Converters/ImagePathConverter.cs @@ -1,11 +1,7 @@ using System; -using System.Diagnostics; using System.Globalization; -using System.IO; using System.Windows; using System.Windows.Data; -using System.Windows.Media.Imaging; -using Wox.Helper; namespace Wox.Converters { diff --git a/Wox/Helper/DWMDropShadow.cs b/Wox/Helper/DWMDropShadow.cs index 60253f8c06..d1fd92757e 100644 --- a/Wox/Helper/DWMDropShadow.cs +++ b/Wox/Helper/DWMDropShadow.cs @@ -3,7 +3,6 @@ using System.Drawing.Printing; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Interop; -using System.Windows.Media; namespace Wox.Helper { diff --git a/Wox/Helper/DataWebRequestFactory.cs b/Wox/Helper/DataWebRequestFactory.cs index 7e474bd4b2..61922d29df 100644 --- a/Wox/Helper/DataWebRequestFactory.cs +++ b/Wox/Helper/DataWebRequestFactory.cs @@ -1,9 +1,6 @@ using System; -using System.Collections.Generic; using System.IO; -using System.Linq; using System.Net; -using System.Text; namespace Wox.Helper { diff --git a/Wox/Helper/DispatcherExtensions.cs b/Wox/Helper/DispatcherExtensions.cs index a2f5643ea6..72880e2ebf 100644 --- a/Wox/Helper/DispatcherExtensions.cs +++ b/Wox/Helper/DispatcherExtensions.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Windows.Threading; namespace Wox diff --git a/Wox/Helper/ErrorReporting.cs b/Wox/Helper/ErrorReporting.cs index d1de5c9822..e7b5a81fb9 100644 --- a/Wox/Helper/ErrorReporting.cs +++ b/Wox/Helper/ErrorReporting.cs @@ -1,11 +1,7 @@ using System; -using System.Diagnostics; -using System.Windows; -using System.Windows.Forms; using System.Windows.Threading; using Wox.Core.Exception; using Wox.Infrastructure.Logger; -using MessageBox = System.Windows.MessageBox; namespace Wox.Helper { diff --git a/Wox/Helper/SingletonWindowOpener.cs b/Wox/Helper/SingletonWindowOpener.cs index 393b236731..2b49503981 100644 --- a/Wox/Helper/SingletonWindowOpener.cs +++ b/Wox/Helper/SingletonWindowOpener.cs @@ -1,7 +1,5 @@ using System; -using System.Collections.Generic; using System.Linq; -using System.Text; using System.Windows; namespace Wox.Helper diff --git a/Wox/Helper/SyntaxSugars.cs b/Wox/Helper/SyntaxSugars.cs index e7caf8560a..fc1bf50892 100644 --- a/Wox/Helper/SyntaxSugars.cs +++ b/Wox/Helper/SyntaxSugars.cs @@ -1,7 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; namespace Wox.Helper { diff --git a/Wox/ImageLoader/ImageCacheStroage.cs b/Wox/ImageLoader/ImageCacheStroage.cs index 21dd028d66..9c13aab06b 100644 --- a/Wox/ImageLoader/ImageCacheStroage.cs +++ b/Wox/ImageLoader/ImageCacheStroage.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; -using System.Text; using Wox.Infrastructure.Storage; namespace Wox.ImageLoader diff --git a/Wox/MainWindow.xaml.cs b/Wox/MainWindow.xaml.cs index 3969505890..182b8458c3 100644 --- a/Wox/MainWindow.xaml.cs +++ b/Wox/MainWindow.xaml.cs @@ -24,7 +24,6 @@ using Wox.Helper; using Wox.Infrastructure; using Wox.Infrastructure.Hotkey; using Wox.Plugin; -using Wox.ShellContext; using Wox.Storage; using ContextMenu = System.Windows.Forms.ContextMenu; using DataFormats = System.Windows.DataFormats; diff --git a/Wox/Msg.xaml.cs b/Wox/Msg.xaml.cs index 3fb7b89b8f..2dd1d500d7 100644 --- a/Wox/Msg.xaml.cs +++ b/Wox/Msg.xaml.cs @@ -1,19 +1,10 @@ using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; using System.Windows.Forms; using System.Windows.Input; -using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Imaging; -using System.Windows.Shapes; -using Timer = System.Threading.Timer; namespace Wox { public partial class Msg : Window { diff --git a/Wox/ResultPanel.xaml.cs b/Wox/ResultPanel.xaml.cs index 576ef4d7f7..7c44bf36bd 100644 --- a/Wox/ResultPanel.xaml.cs +++ b/Wox/ResultPanel.xaml.cs @@ -7,7 +7,6 @@ using System.Windows.Media; using Wox.Core.UserSettings; using Wox.Plugin; using Wox.Storage; -using UserControl = System.Windows.Controls.UserControl; namespace Wox { diff --git a/Wox/SettingWindow.xaml.cs b/Wox/SettingWindow.xaml.cs index 603d4712a2..e78ce1b40a 100644 --- a/Wox/SettingWindow.xaml.cs +++ b/Wox/SettingWindow.xaml.cs @@ -1,34 +1,25 @@ using System; using System.Collections.Generic; -using System.Configuration; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; -using System.Threading; using System.Windows; using System.Windows.Controls; +using System.Windows.Data; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; -using Wox.Core.Plugin; -using Wox.Plugin; -using Wox.Helper; -using Application = System.Windows.Forms.Application; -using File = System.IO.File; -using MessageBox = System.Windows.MessageBox; -using System.Windows.Data; -using System.Windows.Forms; using Microsoft.Win32; using Wox.Core.i18n; +using Wox.Core.Plugin; using Wox.Core.Theme; using Wox.Core.Updater; using Wox.Core.UserSettings; +using Wox.Helper; using Wox.Infrastructure; -using CheckBox = System.Windows.Controls.CheckBox; -using Control = System.Windows.Controls.Control; -using Cursors = System.Windows.Input.Cursors; -using HorizontalAlignment = System.Windows.HorizontalAlignment; +using Wox.Plugin; +using Application = System.Windows.Forms.Application; namespace Wox { diff --git a/Wox/Storage/TopMostRecordStorage.cs b/Wox/Storage/TopMostRecordStorage.cs index dc56ed550c..a1774a9fdd 100644 --- a/Wox/Storage/TopMostRecordStorage.cs +++ b/Wox/Storage/TopMostRecordStorage.cs @@ -1,9 +1,7 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; -using System.Text; using Wox.Infrastructure.Storage; namespace Wox.Storage diff --git a/Wox/Storage/UserSelectedRecordStorage.cs b/Wox/Storage/UserSelectedRecordStorage.cs index 7afa73c814..3f6ac51ca3 100644 --- a/Wox/Storage/UserSelectedRecordStorage.cs +++ b/Wox/Storage/UserSelectedRecordStorage.cs @@ -1,10 +1,9 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; +using System.IO; +using System.Reflection; using Newtonsoft.Json; using Wox.Infrastructure.Storage; using Wox.Plugin; -using System.IO; -using System.Reflection; namespace Wox.Storage {