From f35569d8515092185d35169586abbb9ae7b29af2 Mon Sep 17 00:00:00 2001 From: Alar of Daggerspine Date: Sat, 6 Dec 2014 02:42:46 +0100 Subject: [PATCH] removed unused code Signed-off-by: Alar of Daggerspine --- GarrisonCommander.lua | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/GarrisonCommander.lua b/GarrisonCommander.lua index d01d479..8895b12 100644 --- a/GarrisonCommander.lua +++ b/GarrisonCommander.lua @@ -436,18 +436,6 @@ function addon:ApplyMOVEPANEL(value) GMF:SetMovable(false) end end -local elapsed=0 -function addon:Menu(frame,ts,...) - elapsed=elapsed+ts - if (elapsed>10) then - if (not self:IsAvailableMission()) then - GMF.GCIgnore:Disable() - else - GMF.GCIgnore:Enable() - end - elapsed=0 - end -end function addon:OnInitialized() --@debug@ LoadAddOn("Blizzard_DebugTools") @@ -494,8 +482,8 @@ function addon:OnInitialized() -- Forcing refresh when needed without possibly disrupting Blizzard Logic self:SecureHook("GarrisonMissionPage_Close","RefreshMissions") -- Missino started self:SecureHook("GarrisonMissionFrame_HideCompleteMissions","RefreshMissions") -- Mission reward completed - self:SafeHookScript(GMFMissions,"OnUpdate","Menu") --@debug@ + --Only Used for development self:RegisterEvent("GARRISON_MISSION_LIST_UPDATE",print) self:RegisterEvent("GARRISON_FOLLOWER_LIST_UPDATE",print) --This event is quite useless, fires too often self:RegisterEvent("GARRISON_FOLLOWER_XP_CHANGEDE",print) @@ -514,7 +502,6 @@ function addon:OnInitialized() --self:SafeHookScript("GarrisonMissionFrameFollowers","OnHide") self:SafeHookScript(GMFFollowers,"OnHide") self:SafeHookScript(GMF.MissionTab.MissionPage.CloseButton,"OnClick") - self:SafeHookScript("Pippo","OnHide") --@end-debug@ return true end @@ -617,7 +604,9 @@ function addon:SetUp(full) self:CacheFollowers() end function addon:RefreshMissions() +--@debug@ print("Refresh missions called") +--@end-debug@ if (self:IsAvailableMission()) then wipe(successes) GarrisonMissionList_UpdateMissions() -- 1.7.9.5