Quantcast

Removing extraneous debug stuff

Joe Vaughan [10-27-16 - 11:30]
Removing extraneous debug stuff
Filename
SVUI_!Core/SVUI_!Core.toc
SVUI_!Core/system/_docklets/misc.lua
SVUI_!Core/system/_reports/artifact.lua
SVUI_!Options/SVUI_!Options.lua
SVUI_Auras/SVUI_Auras.lua
SVUI_Auras/components/procs.lua
SVUI_NamePlates/SVUI_NamePlates.lua
SVUI_UnitFrames/libs/Plugins/oUF_Druidness/oUF_Druidness.lua
diff --git a/SVUI_!Core/SVUI_!Core.toc b/SVUI_!Core/SVUI_!Core.toc
index 2cc18b4..ddffd5d 100644
--- a/SVUI_!Core/SVUI_!Core.toc
+++ b/SVUI_!Core/SVUI_!Core.toc
@@ -5,7 +5,7 @@
 ## Notes: SVUI [|cff9911FFCore Framework|r].
 ## SavedVariables: SVUI_Global, SVUI_Errors, SVUI_Filters, SVUI_Media, SVUI_Shared
 ## SavedVariablesPerCharacter: SVUI_Private
-## OptionalDeps: LibSharedMedia-3.0, AdiDebug
+## OptionalDeps: LibSharedMedia-3.0
 ## X-SVUIName: SVUI
 ## X-SVUISchema: Core
 ## X-Email: munglunch@gmail.com
diff --git a/SVUI_!Core/system/_docklets/misc.lua b/SVUI_!Core/system/_docklets/misc.lua
index a7c36a7..c193926 100644
--- a/SVUI_!Core/system/_docklets/misc.lua
+++ b/SVUI_!Core/system/_docklets/misc.lua
@@ -71,14 +71,6 @@ local L = SV.L

 local MOD = SV.Dock;

---Debug
-local Debug
-if AdiDebug then
-	Debug = AdiDebug:GetSink("MiscTools")
-else
-	Debug = function() end
-end
-
 --[[
 ##########################################################
 LOCALS
@@ -349,10 +341,9 @@ local function LoadMiscTools()

 	-- SPEC BUTTON
 	if(SV.db.Dock.dockTools.specswap and (not SVUI_SpecSwap)) then
-		Debug("Setting up spec swap dock")
+
 		local numSpecs = GetNumSpecializations()
 		if(numSpecs and numSpecs > 1) then
-			Debug("numSpecs = ", numSpecs)
 			local specSwap = SV.Dock:SetDockButton("BottomLeft", L["Spec Swap"], "SVUI_SpecSwap", SV.media.dock.specSwapIcon, SpecSwap_OnEnter)
 			specSwap:SetClickCallbacks(SpecSwap_OnLeftClick, SpecSwap_OnRightClick);
 		end
diff --git a/SVUI_!Core/system/_reports/artifact.lua b/SVUI_!Core/system/_reports/artifact.lua
index 6fac8dd..ab1fdf8 100644
--- a/SVUI_!Core/system/_reports/artifact.lua
+++ b/SVUI_!Core/system/_reports/artifact.lua
@@ -41,14 +41,6 @@ local L = SV.L
 local Reports = SV.Reports;
 local LAD = LibStub("LibArtifactData-1.0");

---Debug
-local Debug
-if AdiDebug then
-	Debug = AdiDebug:GetSink("Reports")
-else
-	Debug = function() end
-end
-
 --[[
 ##########################################################
 UTILITIES
@@ -56,13 +48,11 @@ UTILITIES
 ]]--
 local function GetArtifactData()
 	local artID = LAD:GetActiveArtifactID()
-	Debug("GetArtifactData - GetActiveArtifactID returned artID: ",artID)
 	if not artID then return false end

 	local data = nil
 	artID, data = LAD:GetArtifactInfo(artID)
 	if not artID then return false end
-	Debug()

 	return true, data.numRanksPurchased, data.power, data.maxPower , data.numRanksPurchasable
 end
@@ -138,15 +128,12 @@ end

 Report.OnInit = function(self)
 	LAD.RegisterCallback(self,"ARTIFACT_ADDED", function ()
-		Debug("Report: Caught Artifact Added")
 		Report.Populate(self)
 	end)
 	LAD.RegisterCallback(self,"ARTIFACT_ACTIVE_CHANGED", function ()
-		Debug("Report: Caught Artifact active changed")
 		Report.Populate(self)
 	end)
 	LAD.RegisterCallback(self,"ARTIFACT_POWER_CHANGED", function ()
-		Debug("Report: Caught Artifact power changed")
 		Report.Populate(self)
 	end)
 end
@@ -201,15 +188,12 @@ end

 ReportBar.OnInit = function(self)
 	LAD.RegisterCallback(self,"ARTIFACT_ADDED", function ()
-		Debug("Report: Caught Artifact Added")
 		ReportBar.Populate(self)
 	end)
 	LAD.RegisterCallback(self,"ARTIFACT_ACTIVE_CHANGED", function ()
-		Debug("Report: Caught Artifact active changed")
 		ReportBar.Populate(self)
 	end)
 	LAD.RegisterCallback(self,"ARTIFACT_POWER_CHANGED", function ()
-		Debug("Report: Caught Artifact power changed")
 		ReportBar.Populate(self)
 	end)
 end
diff --git a/SVUI_!Options/SVUI_!Options.lua b/SVUI_!Options/SVUI_!Options.lua
index 7c98595..72701cb 100644
--- a/SVUI_!Options/SVUI_!Options.lua
+++ b/SVUI_!Options/SVUI_!Options.lua
@@ -62,14 +62,6 @@ AceConfigDialog:SetDefaultSize(SV.NameID, GUIWidth, 651);
 SVUIOptions.FilterOptionGroups = {};
 SVUIOptions.FilterOptionSpells = {};

---Debug
-local Debug
-if AdiDebug then
-	Debug = AdiDebug:GetSink("SVUIOptions")
-else
-	Debug = function() end
-end
-
 --[[
 ##########################################################
 INIT OPTIONS
diff --git a/SVUI_Auras/SVUI_Auras.lua b/SVUI_Auras/SVUI_Auras.lua
index 1ab847a..deca9b7 100644
--- a/SVUI_Auras/SVUI_Auras.lua
+++ b/SVUI_Auras/SVUI_Auras.lua
@@ -60,13 +60,6 @@ local LSM = _G.LibStub("LibSharedMedia-3.0")
 local MOD = SV.Auras;
 if(not MOD) then return end;

-local Debug
-if AdiDebug then
-	Debug = AdiDebug:GetSink("Auras")
-else
-	Debug = function() end
-end
-
 MOD.Holder = CreateFrame("Frame", "SVUI_AurasAnchor", UIParent)
 MOD.HyperBuffFrame = CreateFrame('Frame', 'SVUI_ConsolidatedBuffs', UIParent)
 --[[
@@ -473,7 +466,6 @@ function MOD:UpdateAuraHeader(auraHeader, auraType)
 	local showBy = db.showBy

 	if(auraType == "buffs") then
-		Debug("consolidateTo - ",SV.db.Auras.hyperBuffsEnabled == true and 1 or 0)
 		auraHeader:SetAttribute("consolidateTo", SV.db.Auras.hyperBuffsEnabled == true and 1 or 0)
 		auraHeader:SetAttribute("weaponTemplate", ("SVUI_AuraTemplate%d"):format(db.size))
 	end
@@ -615,7 +607,6 @@ function MOD:Load()
 	end
 	]]--
 	if(SV.db.Auras.aurasEnabled) then
-		Debug("Auras enabled")
 		BuffFrame:Die()
 		TemporaryEnchantFrame:Die()
 		InterfaceOptionsFrameCategoriesButton12:SetScale(0.0001)
diff --git a/SVUI_Auras/components/procs.lua b/SVUI_Auras/components/procs.lua
index ffd80e1..97e6496 100644
--- a/SVUI_Auras/components/procs.lua
+++ b/SVUI_Auras/components/procs.lua
@@ -61,14 +61,6 @@ local L = SV.L
 local MOD = SV.Auras;
 if(not MOD) then return end;

---Debug
-local Debug
-if AdiDebug then
-	Debug = AdiDebug:GetSink("Auras")
-else
-	Debug = function() end
-end
-
 --[[
 ##########################################################
 LOCAL VARS
diff --git a/SVUI_NamePlates/SVUI_NamePlates.lua b/SVUI_NamePlates/SVUI_NamePlates.lua
index 31f21df..db5dc26 100644
--- a/SVUI_NamePlates/SVUI_NamePlates.lua
+++ b/SVUI_NamePlates/SVUI_NamePlates.lua
@@ -46,13 +46,6 @@ if(not MOD) then return end;

 local LSM = _G.LibStub("LibSharedMedia-3.0")

---Debug
-local Debug
-if AdiDebug then
-	Debug = AdiDebug:GetSink("Nameplates")
-else
-	Debug = function() end
-end
 --[[
 ##########################################################
 LOCAL VARS
@@ -1220,16 +1213,13 @@ function UnitFrameMixin:UpdateThreat()

 	local isTanking, status = UnitDetailedThreatSituation('player', self.displayedUnit)
 	if status ~= nil then
-		Debug("Aggro...")
+
 		if MOD.IsPlayerEffectivelyTank() then
-			Debug("... and I'm the tank")
 			status = math.abs(status - 2)
 		end
 		if status > 0 then
-			Debug("...and I have the threat")
 			tex:SetVertexColor(GetThreatStatusColor(status))
 			if not tex:IsShown() then
-				Debug("showing the aggroHighlight")
 				tex:Show()
 			end
 			return
diff --git a/SVUI_UnitFrames/libs/Plugins/oUF_Druidness/oUF_Druidness.lua b/SVUI_UnitFrames/libs/Plugins/oUF_Druidness/oUF_Druidness.lua
index cbb8c14..04a09de 100644
--- a/SVUI_UnitFrames/libs/Plugins/oUF_Druidness/oUF_Druidness.lua
+++ b/SVUI_UnitFrames/libs/Plugins/oUF_Druidness/oUF_Druidness.lua
@@ -48,12 +48,6 @@ local TextColors = {
 	[4]={0.5,1,0.1},
 	[5]={0.1,1,0.1}
 };
-local Debug
-if AdiDebug then
-	Debug = AdiDebug:GetSink("oUF_Druidness")
-else
-	Debug = function() end
-end

 local ProxyShow = function(self)
 	if(not self.isEnabled) then return end
@@ -161,7 +155,6 @@ local UpdateComboPoints = function(self, event, unit)

 	if(cpoints) then
 		local MAX_COMBO_POINTS = UnitPowerMax("player", SPELL_POWER_COMBO_POINTS);
-		Debug("max combo points/current: ", MAX_COMBO_POINTS,current)
 		for i=1, MAX_COMBO_POINTS do
 			if(i <= current) then
 				if cpoints[i] then