Merged addon:ViewExclusionList() and addon:ClearExclusionList() into fullOptions() since they were only ever used there.
James D. Callahan III [03-09-10 - 14:18]
Merged addon:ViewExclusionList() and addon:ClearExclusionList() into fullOptions() since they were only ever used there.
diff --git a/ARL.lua b/ARL.lua
index 2e98818..4438f73 100644
--- a/ARL.lua
+++ b/ARL.lua
@@ -1634,23 +1634,6 @@ do
end
-------------------------------------------------------------------------------
----Prints all the ID's in the exclusion list out into chat.
-function addon:ViewExclusionList()
- local exclusion_list = addon.db.profile.exclusionlist
-
- -- Parse all items in the exclusion list
- for i in pairs(exclusion_list) do
- self:Print(i .. ": " .. GetSpellInfo(i))
- end
-end
-
-function addon:ClearExclusionList()
- local exclusion_list = addon.db.profile.exclusionlist
-
- exclusion_list = twipe(exclusion_list)
-end
-
--------------------------------------------------------------------------------
-- Text dumping functions
-------------------------------------------------------------------------------
do
diff --git a/Config.lua b/Config.lua
index bfd67f0..86f6dde 100644
--- a/Config.lua
+++ b/Config.lua
@@ -70,14 +70,24 @@ local function fullOptions()
type = "execute",
name = L["View Exclusion List"],
desc = L["VIEW_EXCLUSION_LIST_DESC"],
- func = function(info) addon:ViewExclusionList() end,
+ func = function(info)
+ local exclusion_list = addon.db.profile.exclusionlist
+
+ for i in pairs(exclusion_list) do
+ addon:Print(i .. ": " .. GetSpellInfo(i))
+ end
+ end,
},
clearexclusionlist = {
order = 15,
type = "execute",
name = L["Clear Exclusion List"],
desc = L["CLEAR_EXCLUSION_LIST_DESC"],
- func = function(info) addon:ClearExclusionList() end,
+ func = function(info)
+ local exclusion_list = addon.db.profile.exclusionlist
+
+ exclusion_list = twipe(exclusion_list)
+ end,
},
resetallfilters = {
order = 16,