- TitanLocation: Removal of TitanDebug calls an extraneous test data for release version.
HonorGoG [01-04-19 - 23:54]
- TitanLocation: Removal of TitanDebug calls an extraneous test data for release version.
diff --git a/TitanLocation/TitanLocation.lua b/TitanLocation/TitanLocation.lua
index 7cf2227..743d603 100755
--- a/TitanLocation/TitanLocation.lua
+++ b/TitanLocation/TitanLocation.lua
@@ -187,8 +187,6 @@ end
-- **************************************************************************
function TitanPanelLocationButton_OnEvent(self, event, ...)
if event == "PLAYER_ENTERING_WORLD" then
- TitanDebug("PEW_LocOnMiniMap Value: "..tostring(LocOnMiniMap))
- TitanDebug("PEW_ShowLocOnMiniMap Value: "..TitanGetVar(TITAN_LOCATION_ID, "ShowLocOnMiniMap"))
if TitanGetVar(TITAN_LOCATION_ID, "ShowLocOnMiniMap") and MinimapBorderTop and MinimapBorderTop:IsShown() then
TitanPanelLocationButton_LocOnMiniMap()
end
@@ -206,14 +204,6 @@ end
-- function to throttle down unnecessary updates
function TitanPanelLocationButton_CheckForUpdate()
--- TitanDebug("LocOnMiniMap Value: "..tostring(LocOnMiniMap))
--- TitanDebug("ShowLocOnMiniMap Value: "..TitanGetVar(TITAN_LOCATION_ID, "ShowLocOnMiniMap"))
--- if not LocOnMiniMap and not TitanGetVar(TITAN_LOCATION_ID, "ShowLocOnMiniMap") and MinimapBorderTop and MinimapBorderTop:IsShown() then
--- if TitanGetVar(TITAN_LOCATION_ID, "ShowLocOnMiniMap") and MinimapBorderTop and MinimapBorderTop:IsShown() then
--- TitanDebug("Calling TitanPanelLocationButton_LocOnMiniMap")
--- TitanPanelLocationButton_LocOnMiniMap()
--- local LocOnMiniMap = true;
--- end
local mapID = C_Map.GetBestMapForUnit("player")
local tempx, tempy = TitanPanelGetPlayerMapPosition();
if tempx ~= cachedX or tempy ~= cachedY then
@@ -227,7 +217,6 @@ end
-- **************************************************************************
function TitanPanelLocation_HandleUpdater()
if TitanPanelLocationButton:IsVisible() and not LocationTimer then
- TitanDebug("LocationTimer Started")
LocationTimer = AceTimer.ScheduleRepeatingTimer("TitanPanelLocation", TitanPanelLocationButton_CheckForUpdate, 0.5)
end
end