From bff49b9761603efd05b00a27ca654cd7b9d2bde0 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Tue, 9 Mar 2010 09:18:27 -0500 Subject: [PATCH] Merged addon:ViewExclusionList() and addon:ClearExclusionList() into fullOptions() since they were only ever used there. --- ARL.lua | 17 ----------------- Config.lua | 14 ++++++++++++-- 2 files changed, 12 insertions(+), 19 deletions(-) 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, -- 1.7.9.5