changeset 87:26f45b6e8d4d

Removed some debugging code and added some code to prevent ItemAuditor from crashing if debug code gets released.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Sun, 08 Aug 2010 07:57:45 -0700
parents 8d5ad3b71f6f
children 2112f71c4237
files CHANGELOG.txt Core.lua Modules/Utils.lua
diffstat 3 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGELOG.txt	Sat Aug 07 11:16:21 2010 -0700
+++ b/CHANGELOG.txt	Sun Aug 08 07:57:45 2010 -0700
@@ -1,3 +1,7 @@
+2010-08-08  Asa Ayers  <Asa.Ayers@Gmail.com>
+
+- Removed some debugging code and added some code to prevent ItemAuditor from crashing if debug code gets released.
+
 2010-08-07  Asa Ayers  <Asa.Ayers@Gmail.com>
 
 - Removed references to Skillet in core functionality. Skillet really should be optional.
--- a/Core.lua	Sat Aug 07 11:16:21 2010 -0700
+++ b/Core.lua	Sun Aug 08 07:57:45 2010 -0700
@@ -4,6 +4,11 @@
 	_G['ItemAuditor'] = ItemAuditor
 --@end-debug@
 
+if not DevTools_Dump then
+	function DevTools_Dump()
+	end
+end
+
 local WHITE		= "|cFFFFFFFF"
 local RED		= "|cFFFF0000"
 local GREEN		= "|cFF00FF00"
--- a/Modules/Utils.lua	Sat Aug 07 11:16:21 2010 -0700
+++ b/Modules/Utils.lua	Sun Aug 08 07:57:45 2010 -0700
@@ -72,7 +72,6 @@
 
 	if tmp_item_cache[item] == nil then
 		-- Whether item is a link or a name, both should return the full link
-		DevTools_Dump(item)
 		local _, itemLink = GetItemInfo (item);
 		if itemLink ~= nil then
 			local _, _, _, _, itemID = string.find(itemLink, "|?c?f?f?(%x*)|?H?([^:]*):?(%d+):?(%d*):?(%d*):?(%d*):?(%d*):?(%d*):?(%-?%d*):?(%-?%d*):?(%d*)|?h?%[?([^%[%]]*)%]?|?h?|?r?")