diff Main.lua @ 218:54e268151cd2

Removed code dealing with blacklisted battleground maps.
author James D. Callahan III <jcallahan@curse.com>
date Thu, 24 Jan 2013 13:15:30 -0600
parents 719fe69d3af2
children 09d8ee2c1551
line wrap: on
line diff
--- a/Main.lua	Tue Jan 22 15:21:44 2013 -0600
+++ b/Main.lua	Thu Jan 24 13:15:30 2013 -0600
@@ -425,26 +425,6 @@
 end -- do-block
 
 
-local function UpdateBlacklistMaps()
-    local empty_count = 0
-
-    for index = 1, _G.MAX_BLACKLIST_BATTLEGROUNDS do
-        local map_id = _G.GetBlacklistMap(index)
-        char_db.bg_blacklist = char_db.bg_blacklist or {}
-        char_db.bg_blacklist[index] = map_id
-
-        if map_id < 0 then
-            empty_count = empty_count + 1
-            empty_count = empty_count + 1
-        end
-    end
-
-    if empty_count == _G.MAX_BLACKLIST_BATTLEGROUNDS then
-        char_db.bg_blacklist = nil
-    end
-end
-
-
 local UpdateDBEntryLocation
 do
     local pi = math.pi
@@ -817,11 +797,6 @@
         HandleItemUse(item_link)
     end)
     self:SetCurrentAreaID("OnEnable")
-
-    _G.hooksecurefunc("SetBlacklistMap", UpdateBlacklistMaps)
-    _G.hooksecurefunc("ClearBlacklistMap", UpdateBlacklistMaps)
-
-    UpdateBlacklistMaps()
 end