Code inspections

This commit is contained in:
2019-09-29 17:37:07 +01:00
parent b8faab13b3
commit 15bf977458
7 changed files with 13 additions and 25 deletions
+2 -5
View File
@@ -254,7 +254,6 @@ namespace ASCOM.Meade.net
{
// Probably an attempt to load a Win32 DLL (i.e. not a .net assembly)
// Just swallow the exception and continue to the next item.
continue;
}
catch (Exception e)
{
@@ -262,7 +261,6 @@ namespace ASCOM.Meade.net
DriverName, MessageBoxButtons.OK, MessageBoxIcon.Stop);
return false;
}
}
return true;
}
@@ -303,7 +301,6 @@ namespace ASCOM.Meade.net
{
MessageBox.Show(ex.ToString(), DriverName, MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
return;
}
//
@@ -412,7 +409,7 @@ namespace ASCOM.Meade.net
//
// ASCOM
//
assy = type.Assembly;
//assy = type.Assembly;
// Pull the display name from the ServedClassName attribute.
attr = Attribute.GetCustomAttribute(type, typeof(ServedClassNameAttribute)); //PWGS Changed to search type for attribute rather than assembly
@@ -425,7 +422,7 @@ namespace ASCOM.Meade.net
}
catch (Exception ex)
{
MessageBox.Show("Error while registering the server:\n" + ex.ToString(),
MessageBox.Show($"Error while registering the server:\n{ex}",
DriverName, MessageBoxButtons.OK, MessageBoxIcon.Stop);
bFail = true;
}
-1
View File
@@ -16,7 +16,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using ASCOM.Utilities;
namespace ASCOM.Meade.net
+1 -7
View File
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using System.Text;
namespace ASCOM.Meade.net
namespace ASCOM.Meade.net
{
public static class TelescopeList
{