diff API/Objects/UnitType.cs @ 463:cbeee87dc2d3

Re #58: Remove LogNotifier from API * Remove LogNotifier from API - mostly unnecessary logging Also: * Formatting auto-corrected * LoadFile() "try...catch {silently dispose}" removed. Code shouldn't be throwing those errors and needs to be handled elsewhere if it does
author IBBoard <dev@ibboard.co.uk>
date Sat, 17 Mar 2012 20:02:32 +0000
parents 025319b6fa7a
children 95c1b68a600b
line wrap: on
line diff
--- a/API/Objects/UnitType.cs	Tue Mar 06 20:31:31 2012 +0000
+++ b/API/Objects/UnitType.cs	Sat Mar 17 20:02:32 2012 +0000
@@ -5,7 +5,6 @@
 using System.Collections.Generic;
 using System.Xml;
 using IBBoard.Limits;
-using IBBoard.Logging;
 using IBBoard.WarFoundry.API.Objects.Requirement;
 
 namespace IBBoard.WarFoundry.API.Objects
@@ -191,7 +190,6 @@
 			if (MinNumber > MaxNumber && MaxNumber != WarFoundryCore.INFINITY)
 			{
 				MinNumber = MaxNumber;
-				LogNotifier.WarnFormat(GetType(), "Unit type {0} ({1}) had a minimum number greater than their maximum number.", Name, ID);
 			}
 		}
 
@@ -203,7 +201,6 @@
 			if (MinSize > MaxSize && MaxSize != WarFoundryCore.INFINITY)
 			{
 				MinSize = MaxSize;
-				LogNotifier.WarnFormat(GetType(), "Unit type {0} ({1}) had a minimum size greater than their maximum size.", Name, ID);
 			}
 		}