diff API/Objects/Category.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 3c4a6403a88c
children
line wrap: on
line diff
--- a/API/Objects/Category.cs	Tue Mar 06 20:31:31 2012 +0000
+++ b/API/Objects/Category.cs	Sat Mar 17 20:02:32 2012 +0000
@@ -1,10 +1,8 @@
 // This file (Category.cs) is a part of the IBBoard.WarFoundry.API project and is copyright 2007, 2008, 2009 IBBoard.
 //
 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
-
 using System;
 using System.Xml;
-using IBBoard.Logging;
 
 namespace IBBoard.WarFoundry.API.Objects
 {
@@ -17,7 +15,6 @@
 		private int maxPts = WarFoundryCore.INFINITY;
 		private int minPc = 0;
 		private int maxPc = 100;
-
 		
 		public Category(string id, string name) : base(id, name)
 		{
@@ -59,10 +56,9 @@
 		/// </summary>
 		private void CheckMinimumPoints()
 		{
-			if (MinimumPoints > MaximumPoints && MaximumPoints!=WarFoundryCore.INFINITY)
+			if (MinimumPoints > MaximumPoints && MaximumPoints != WarFoundryCore.INFINITY)
 			{
 				MinimumPoints = MaximumPoints;
-				LogNotifier.WarnFormat(GetType(), "Category {0} ({1}) had a minimum points limit greater than its maximum points limit.", Name, ID);
 			}
 		}
 		
@@ -112,7 +108,6 @@
 			if (MinimumPercentage > MaximumPercentage)
 			{
 				MinimumPercentage = MaximumPercentage;
-				LogNotifier.WarnFormat(GetType(), "Category {0} ({1}) had a minimum percentage limit greater than its maximum percentage limit.", Name, ID);
 			}
 		}
 	}