From 93b4eb1e359e7fd49a1d002e4a3d24409693e91a Mon Sep 17 00:00:00 2001 From: KyrosKrane Date: Sun, 5 Jul 2015 03:56:52 +0400 Subject: [PATCH] Removing cruft debugging code and retagging as v1.0c --- AnnoyingPopupRemover/AnnoyingPopupRemover.lua | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/AnnoyingPopupRemover/AnnoyingPopupRemover.lua b/AnnoyingPopupRemover/AnnoyingPopupRemover.lua index 3538590..259e673 100644 --- a/AnnoyingPopupRemover/AnnoyingPopupRemover.lua +++ b/AnnoyingPopupRemover/AnnoyingPopupRemover.lua @@ -30,6 +30,7 @@ -- Define whether we're in debug mode or production mode. True means debug; false means production. local DebugMode = false; +-- Set the current version so we can display it. local APR_Version = "@project-version@"; @@ -41,21 +42,6 @@ function DebugPrint(...) end --- Figure out what sort of variable we're dealing with. -function typeof(var) - local _type = type(var); - if(_type ~= "table" and _type ~= "userdata") then - return _type; - end - local _meta = getmetatable(var); - if(_meta ~= nil and _meta._NAME ~= nil) then - return _meta._NAME; - else - return _type; - end -end -- typeof() - - -- Debugging code to see what the hell is being passed in... function PrintVarArgs(...) local n = select('#', ...) @@ -86,7 +72,6 @@ function events:LOOT_BIND_CONFIRM(Frame, ...) if (DebugMode) then DebugPrint ("In events:LOOT_BIND_CONFIRM"); DebugPrint ("Frame is ", Frame); - --DebugPrint ("typeof Frame is ", typeof(Frame)); PrintVarArgs(...); end -- if Debugmode @@ -170,5 +155,4 @@ StaticPopupDialogs["VOID_DEPOSIT_CONFIRM"] = nil; --@do-not-package@ -- Curse-specific command to exclude this section from appearing for end users. DebugMode = true; - --@end-do-not-package@ -- 1.7.9.5