From 33fd83707e6bf0ce0a76e9aec3c0e5da0bd980fb Mon Sep 17 00:00:00 2001 From: Jaex Date: Mon, 15 Feb 2016 09:29:43 +0200 Subject: [PATCH] CodeMaid cleanup --- ShareX.IndexerLib/Forms/DirectoryIndexerForm.cs | 7 ------- ShareX.IndexerLib/Indexer.cs | 3 --- ShareX.IndexerLib/IndexerHtml.cs | 1 - ShareX.IndexerLib/IndexerJson.cs | 3 --- ShareX.IndexerLib/IndexerText.cs | 1 - ShareX.ScreenCaptureLib/Screencast/FFmpegOptions.cs | 2 +- .../Screencast/FFmpegOptionsForm.cs | 4 ++-- ShareX.UploadersLib/FileUploaders/Sul.cs | 11 +++-------- ShareX/ExportImportManager.cs | 2 -- ShareX/Forms/QuickTaskInfoEditForm.cs | 6 ------ ShareX/Forms/QuickTaskMenuEditorForm.cs | 5 ----- ShareX/QuickTaskInfo.cs | 2 -- ShareX/QuickTaskMenu.cs | 4 ---- 13 files changed, 6 insertions(+), 45 deletions(-) diff --git a/ShareX.IndexerLib/Forms/DirectoryIndexerForm.cs b/ShareX.IndexerLib/Forms/DirectoryIndexerForm.cs index f5e6ec01a..1dbdfe55e 100644 --- a/ShareX.IndexerLib/Forms/DirectoryIndexerForm.cs +++ b/ShareX.IndexerLib/Forms/DirectoryIndexerForm.cs @@ -25,14 +25,7 @@ You should have received a copy of the GNU General Public License using ShareX.HelpersLib; using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; using System.IO; -using System.Linq; -using System.Text; -using System.Windows.Forms; namespace ShareX.IndexerLib { diff --git a/ShareX.IndexerLib/Indexer.cs b/ShareX.IndexerLib/Indexer.cs index 4764fc0e2..4626ff0f6 100644 --- a/ShareX.IndexerLib/Indexer.cs +++ b/ShareX.IndexerLib/Indexer.cs @@ -23,11 +23,8 @@ You should have received a copy of the GNU General Public License #endregion License Information (GPL v3) -using ShareX.HelpersLib; using System; using System.IO; -using System.Text; -using System.Windows.Forms; namespace ShareX.IndexerLib { diff --git a/ShareX.IndexerLib/IndexerHtml.cs b/ShareX.IndexerLib/IndexerHtml.cs index e1665c32f..75757326e 100644 --- a/ShareX.IndexerLib/IndexerHtml.cs +++ b/ShareX.IndexerLib/IndexerHtml.cs @@ -28,7 +28,6 @@ You should have received a copy of the GNU General Public License using System; using System.IO; using System.Text; -using System.Windows.Forms; namespace ShareX.IndexerLib { diff --git a/ShareX.IndexerLib/IndexerJson.cs b/ShareX.IndexerLib/IndexerJson.cs index 1ee6204d1..f1f718b3d 100644 --- a/ShareX.IndexerLib/IndexerJson.cs +++ b/ShareX.IndexerLib/IndexerJson.cs @@ -25,10 +25,7 @@ You should have received a copy of the GNU General Public License using Newtonsoft.Json; using ShareX.HelpersLib; -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; using System.Text; namespace ShareX.IndexerLib diff --git a/ShareX.IndexerLib/IndexerText.cs b/ShareX.IndexerLib/IndexerText.cs index b211c6b4a..ab232914c 100644 --- a/ShareX.IndexerLib/IndexerText.cs +++ b/ShareX.IndexerLib/IndexerText.cs @@ -27,7 +27,6 @@ You should have received a copy of the GNU General Public License using System; using System.IO; using System.Text; -using System.Windows.Forms; namespace ShareX.IndexerLib { diff --git a/ShareX.ScreenCaptureLib/Screencast/FFmpegOptions.cs b/ShareX.ScreenCaptureLib/Screencast/FFmpegOptions.cs index ca6c031f4..70b9ef037 100644 --- a/ShareX.ScreenCaptureLib/Screencast/FFmpegOptions.cs +++ b/ShareX.ScreenCaptureLib/Screencast/FFmpegOptions.cs @@ -23,8 +23,8 @@ You should have received a copy of the GNU General Public License #endregion License Information (GPL v3) -using System; using ShareX.HelpersLib; +using System; namespace ShareX.ScreenCaptureLib { diff --git a/ShareX.ScreenCaptureLib/Screencast/FFmpegOptionsForm.cs b/ShareX.ScreenCaptureLib/Screencast/FFmpegOptionsForm.cs index 26a82b86e..a8b0121b9 100644 --- a/ShareX.ScreenCaptureLib/Screencast/FFmpegOptionsForm.cs +++ b/ShareX.ScreenCaptureLib/Screencast/FFmpegOptionsForm.cs @@ -23,13 +23,13 @@ You should have received a copy of the GNU General Public License #endregion License Information (GPL v3) +using ShareX.HelpersLib; +using ShareX.ScreenCaptureLib.Properties; using System; using System.Diagnostics; using System.Drawing; using System.IO; using System.Windows.Forms; -using ShareX.HelpersLib; -using ShareX.ScreenCaptureLib.Properties; namespace ShareX.ScreenCaptureLib { diff --git a/ShareX.UploadersLib/FileUploaders/Sul.cs b/ShareX.UploadersLib/FileUploaders/Sul.cs index ac64b3c3b..3deb8b869 100644 --- a/ShareX.UploadersLib/FileUploaders/Sul.cs +++ b/ShareX.UploadersLib/FileUploaders/Sul.cs @@ -23,18 +23,15 @@ You should have received a copy of the GNU General Public License #endregion License Information (GPL v3) -using System; -using System.IO; -using System.Collections.Generic; -using ShareX.HelpersLib; -using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using ShareX.HelpersLib; +using System.Collections.Generic; +using System.IO; namespace ShareX.UploadersLib.FileUploaders { public sealed class SulUploader : FileUploader { - private string APIKey { get; set; } public SulUploader(string apiKey) @@ -44,13 +41,11 @@ public SulUploader(string apiKey) public override UploadResult Upload(Stream stream, string fileName) { - Dictionary args = new Dictionary(); args.Add("wizard", "true"); args.Add("key", APIKey); args.Add("client", "sharex-native"); - string url = "https://s-ul.eu"; url = URLHelpers.CombineURL(url, "upload.php"); diff --git a/ShareX/ExportImportManager.cs b/ShareX/ExportImportManager.cs index e380aa65d..82d869370 100644 --- a/ShareX/ExportImportManager.cs +++ b/ShareX/ExportImportManager.cs @@ -28,8 +28,6 @@ You should have received a copy of the GNU General Public License using System; using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; using System.Windows.Forms; namespace ShareX diff --git a/ShareX/Forms/QuickTaskInfoEditForm.cs b/ShareX/Forms/QuickTaskInfoEditForm.cs index 17e7b031a..b58ba6e0f 100644 --- a/ShareX/Forms/QuickTaskInfoEditForm.cs +++ b/ShareX/Forms/QuickTaskInfoEditForm.cs @@ -24,14 +24,8 @@ You should have received a copy of the GNU General Public License #endregion License Information (GPL v3) using ShareX.HelpersLib; -using ShareX.Properties; using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; using System.Linq; -using System.Text; using System.Windows.Forms; namespace ShareX diff --git a/ShareX/Forms/QuickTaskMenuEditorForm.cs b/ShareX/Forms/QuickTaskMenuEditorForm.cs index f4ac3447f..45cd7316c 100644 --- a/ShareX/Forms/QuickTaskMenuEditorForm.cs +++ b/ShareX/Forms/QuickTaskMenuEditorForm.cs @@ -26,11 +26,6 @@ You should have received a copy of the GNU General Public License using ShareX.HelpersLib; using System; using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; namespace ShareX diff --git a/ShareX/QuickTaskInfo.cs b/ShareX/QuickTaskInfo.cs index be3f9caea..634def1bb 100644 --- a/ShareX/QuickTaskInfo.cs +++ b/ShareX/QuickTaskInfo.cs @@ -24,10 +24,8 @@ You should have received a copy of the GNU General Public License #endregion License Information (GPL v3) using ShareX.HelpersLib; -using System; using System.Collections.Generic; using System.Linq; -using System.Text; namespace ShareX { diff --git a/ShareX/QuickTaskMenu.cs b/ShareX/QuickTaskMenu.cs index 131993fd5..7cc2a6c85 100644 --- a/ShareX/QuickTaskMenu.cs +++ b/ShareX/QuickTaskMenu.cs @@ -24,11 +24,7 @@ You should have received a copy of the GNU General Public License #endregion License Information (GPL v3) using ShareX.HelpersLib; -using System; -using System.Collections.Generic; using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; namespace ShareX