Fixed a number of complier warnings

This commit is contained in:
Sean Kaim
2016-05-07 16:47:47 -04:00
parent 15e297eef3
commit 7a3088d553
6 changed files with 5 additions and 14 deletions

View File

@@ -66,8 +66,6 @@ namespace mRemoteNG.App
private static void SaveExportFile(string fileName, ConnectionsSaver.Format saveFormat, TreeNode rootNode, Security.Save saveSecurity)
{
bool previousTimerEnabled = false;
try
{
if (Runtime.SQLConnProvider != null)

View File

@@ -47,7 +47,7 @@ namespace mRemoteNG.App
private static SystemMenu _systemMenu;
private static ILog _log;
private static bool _isConnectionsFileLoaded;
private static System.Timers.Timer _timerSqlWatcher;
//private static System.Timers.Timer _timerSqlWatcher;
private static SqlConnectionsProvider _sqlConnectionsProvider;
private static DateTime _lastSqlUpdate;
private static string _lastSelected;
@@ -764,8 +764,6 @@ namespace mRemoteNG.App
return;
}
bool previousTimerState = false;
try
{
if (Update == true && My.Settings.Default.UseSQLServer == false)
@@ -822,7 +820,6 @@ namespace mRemoteNG.App
public static void SaveConnectionsAs()
{
bool previousTimerState = false;
ConnectionsSaver connectionsSave = new ConnectionsSaver();
try

View File

@@ -1,4 +1,6 @@
using SharedLibraryNG;
using mRemoteNG.App;
using mRemoteNG.Messages;
using SharedLibraryNG;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -87,6 +89,7 @@ namespace mRemoteNG.Config.KeyboardShortcuts
}
catch (NullReferenceException e)
{
Runtime.MessageCollector.AddExceptionMessage("Encountered Exception", e);
return false;
}
return true;

View File

@@ -92,10 +92,7 @@ namespace mRemoteNG.Container
public void SetDefaults()
{
if (this.IsExpanded == null)
{
this.IsExpanded = true;
}
}
#endregion
}

View File

@@ -6,9 +6,6 @@ using System.Security.Permissions;
using mRemoteNG.App;
[assembly:SecurityPermissionAttribute(SecurityAction.RequestMinimum,UnmanagedCode=true)]
[assembly:PermissionSetAttribute(SecurityAction.RequestMinimum,Name="FullTrust")]
namespace mRemoteNG.Security
{
public class Impersonator

View File

@@ -124,7 +124,6 @@ namespace mRemoteNG.UI.Forms.OptionsPages
this.PerformLayout();
}
internal System.Windows.Forms.Label Label1;
internal System.Windows.Forms.Label lblLanguageRestartRequired;
internal System.Windows.Forms.ComboBox cboLanguage;
internal System.Windows.Forms.Label lblLanguage;