Refactor: Sort and remove usings.

This commit is contained in:
2017-05-19 18:16:16 +01:00
parent c8ef7538e6
commit 0b23650ad0
13 changed files with 52 additions and 32 deletions

View File

@@ -25,7 +25,6 @@
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
using System;
namespace osrepodbmgr.Core
{
public enum AlgoEnum

View File

@@ -1,3 +1,13 @@
2017-05-19 Natalia Portillo <claunia@claunia.com>
* AlgoEnum.cs:
* Workers/Clamd.cs:
* Workers/Files.cs:
* Workers/Consts.cs:
* Workers/Delegates.cs:
* Workers/VirusTotal.cs:
Refactor: Sort and remove usings.
2017-05-19 Natalia Portillo <claunia@claunia.com>
* DBOps.cs:

View File

@@ -26,14 +26,13 @@
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
using System;
using nClam;
using System.Threading.Tasks;
using System.IO;
using SharpCompress.Compressors.LZMA;
using SharpCompress.Compressors.Deflate;
using SharpCompress.Compressors.BZip2;
using System.Threading;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using nClam;
using SharpCompress.Compressors.BZip2;
using SharpCompress.Compressors.Deflate;
using SharpCompress.Compressors.LZMA;
namespace osrepodbmgr.Core
{

View File

@@ -25,7 +25,6 @@
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
using System;
namespace osrepodbmgr.Core
{
public static partial class Workers

View File

@@ -25,7 +25,6 @@
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
using System;
using System.Collections.Generic;
namespace osrepodbmgr.Core

View File

@@ -935,7 +935,8 @@ namespace osrepodbmgr.Core
}
#pragma warning disable RECS0022 // A catch clause that catches System.Exception and has an empty body
catch
#pragma warning restore RECS0022 // A catch clause that catches System.Exception and has an empty body
#pragma warning restore RECS0022 // A catch clause that catches System.Exception and has an empty body
{
// Do not crash
}

View File

@@ -26,17 +26,16 @@
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
using System;
using VirusTotalNET;
using VirusTotalNET.Results;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using VirusTotalNET.Objects;
using System.Collections.Generic;
using SharpCompress.Compressors.Deflate;
using SharpCompress.Compressors.BZip2;
using SharpCompress.Compressors.LZMA;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using SharpCompress.Compressors.BZip2;
using SharpCompress.Compressors.Deflate;
using SharpCompress.Compressors.LZMA;
using VirusTotalNET;
using VirusTotalNET.Objects;
using VirusTotalNET.Results;
namespace osrepodbmgr.Core
{

View File

@@ -1,3 +1,8 @@
2017-05-19 Natalia Portillo <claunia@claunia.com>
* Program.cs:
Refactor: Sort and remove usings.
2017-05-19 Natalia Portillo <claunia@claunia.com>
* Program.cs:

View File

@@ -39,12 +39,12 @@ namespace osrepodbmgr.Eto.Desktop
{
Settings.LoadSettings();
Context.CheckUnar();
if(Core.Settings.Current.UseAntivirus)
if(Settings.Current.UseAntivirus)
{
if(Core.Settings.Current.UseClamd)
if(Settings.Current.UseClamd)
Workers.InitClamd();
if(Core.Settings.Current.UseVirusTotal)
Context.virusTotalEnabled = Workers.InitVirusTotal(Core.Settings.Current.VirusTotalKey);
if(Settings.Current.UseVirusTotal)
Context.virusTotalEnabled = Workers.InitVirusTotal(Settings.Current.VirusTotalKey);
}
Context.usableDotNetZip = !Platform.Detect.IsMac && !Platform.Detect.IsIos;

View File

@@ -1,3 +1,8 @@
2017-05-19 Natalia Portillo <claunia@claunia.com>
* Program.cs:
Refactor: Sort and remove usings.
2017-05-19 Natalia Portillo <claunia@claunia.com>
* Program.cs:

View File

@@ -39,12 +39,12 @@ namespace osrepodbmgr.Eto.XamMac2
{
Settings.LoadSettings();
Context.CheckUnar();
if(Core.Settings.Current.UseAntivirus)
if(Settings.Current.UseAntivirus)
{
if(Core.Settings.Current.UseClamd)
if(Settings.Current.UseClamd)
Workers.InitClamd();
if(Core.Settings.Current.UseVirusTotal)
Context.virusTotalEnabled = Workers.InitVirusTotal(Core.Settings.Current.VirusTotalKey);
if(Settings.Current.UseVirusTotal)
Context.virusTotalEnabled = Workers.InitVirusTotal(Settings.Current.VirusTotalKey);
}
Context.usableDotNetZip = false;
new Application(Platforms.XamMac2).Run(new frmMain());

View File

@@ -1,3 +1,8 @@
2017-05-19 Natalia Portillo <claunia@claunia.com>
* frmMain.cs:
Refactor: Sort and remove usings.
2017-05-19 Natalia Portillo <claunia@claunia.com>
* frmMain.cs:

View File

@@ -27,7 +27,6 @@
//
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using Gtk;
using osrepodbmgr.Core;