Quantcast

Removed debug prints

Alar of Daggerspine [09-04-15 - 14:44]
Removed debug prints

Signed-off-by: Alar of Daggerspine <alar@aspide.it>
Filename
CHANGELOG.txt
GarrisonCommander.lua
Init.lua
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index b4e457e..54d4d46 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,5 +1,8 @@
 *GarrisonCommander helps you when choosing the right follower for the right mission*

+* *2.7.4*
+Fix: Removed chat spam
+
 * *2.7.3*
 Fix: Lua error "attempt to compare number with function"

diff --git a/GarrisonCommander.lua b/GarrisonCommander.lua
index ea77a82..6a9b61b 100644
--- a/GarrisonCommander.lua
+++ b/GarrisonCommander.lua
@@ -1376,8 +1376,10 @@ do
 		if m and m.missionID then
 			holdEvents()
 			local rc,message=pcall(removeAllFollowers,m.missionID)
-			if not rec then
+			if not rc then
+				--@debug@
 				print(message)
+				--@end-debug@
 			end
 			releaseEvents()
 		end
@@ -1564,7 +1566,6 @@ function addon:AddMenu()
 		return
 	end
 	local menu,size
-	print("Was",frametoname(self.currentmenu))
 	if GMF.MissionTab:IsVisible() then
 		self.currentmenu=GMF.MissionTab
 		menu,size=self:CreateOptionsLayer(MP and 'CKMP' or nil,'BIGSCREEN','IGM','IGP','MSORT','MAXRES','MAXRESCHANCE','NOFILL','USEFUL','MOVEPANEL')
@@ -1585,12 +1586,10 @@ function addon:AddMenu()
 		self.currentmenu=nil
 		menu,size=self:CreateOptionsLayer('BIGSCREEN')
 	end
-	print("Is",frametoname(self.currentmenu))

 --@debug@
 	self:AddOptionToOptionsLayer(menu,'DBG')
 	self:AddOptionToOptionsLayer(menu,'TRC')
-	print("Menu size",size)
 --@end-debug@
 	local frame=menu.frame
 	frame:Show()
@@ -2255,7 +2254,6 @@ function addon:OnClick_GarrisonMissionFrame_MissionComplete_NextMissionButton(th
 	end
 end
 function addon:ScriptGarrisonMissionButton_OnClick(tab,button)
-	print("click",tab,tab.info)
 	lastTab=1
 	if (GMF.MissionTab.MissionList.showInProgress) then
 		return
@@ -2714,7 +2712,6 @@ function addon:AddThreatsToButton(button,mission,missionID,bigscreen)
 			button.Env:SetScript("OnEnter",addon.ClonedGarrisonMissionMechanic_OnEnter)
 			button.Env:SetScript("OnLeave",function() GameTooltip:Hide() end)
 		else
-			print("No typeIcon in",mission)
 			button.Env:SetScript("OnEnter",nil)
 			button.Env:Hide()
 		end
diff --git a/Init.lua b/Init.lua
index fe70619..ab4c8bb 100644
--- a/Init.lua
+++ b/Init.lua
@@ -104,7 +104,6 @@ end
 ns.I=LibStub("LibItemUpgradeInfo-1.0")
 ns.GetItemInfo=ns.I:GetCachingGetItemInfo()
 function ns.GarrisonMissionFrame_SetItemRewardDetails(frame,bark)
-	print(frame,bark)
 	local itemName, _, itemRarity, _, _, _, _, _, _, itemTexture = ns.GetItemInfo(frame.itemID);
 	--@debug@
 	if bark then print(frame.itemID,'rescheduled',itemName) end