From ccc0128d53656289b5da0319de6250c8016df648 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Tue, 9 Mar 2010 05:35:39 -0500 Subject: [PATCH] Remove the code for the UPDATE_FACTION event - it is no longer needed. --- ARL.lua | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/ARL.lua b/ARL.lua index c119af4..0064fc0 100644 --- a/ARL.lua +++ b/ARL.lua @@ -541,8 +541,6 @@ function addon:OnEnable() self:RegisterEvent("TRADE_SKILL_SHOW") -- Make addon respond to the tradeskill windows being shown self:RegisterEvent("TRADE_SKILL_CLOSE") -- Addon responds to tradeskill windows being closed. self:RegisterEvent("TRADE_SKILL_UPDATE") - -- http://wowprogramming.com/docs/events/UPDATE_FACTION - --self:RegisterEvent("UPDATE_FACTION") -- Addon responds to faction changes by the player if addon.db.profile.scantrainers then self:RegisterEvent("TRAINER_SHOW") @@ -741,24 +739,6 @@ function addon:MERCHANT_SHOW() end do - - -- We don't want to update the reputation with every kill, lets keep track of how many we've done - -- and only do it every 10th update. - local factionincrement = 0 - - ---Event used to update the internal faction database when your faction changes. - function addon:UPDATE_FACTION() - -- Increment the faction counter - factionincrement = factionincrement + 1 - -- Only update the rep levels on every 10th event firing. - if (factionincrement % 10) then - Player:SetReputationLevels() - end - end - -end - -do local GetTradeSkillListLink = _G.GetTradeSkillListLink local UnitName = _G.UnitName local GetRealmName = _G.GetRealmName -- 1.7.9.5