changeset 202:15f22a466596

Cleaning up.
author Zerotorescue
date Sat, 05 Feb 2011 17:36:08 +0100
parents bfab0c870d1e
children 585cfb690080
files Modules/Alerts.lua Modules/Queue.lua Modules/Summary.lua
diffstat 3 files changed, 3 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/Modules/Alerts.lua	Sat Feb 05 17:32:25 2011 +0100
+++ b/Modules/Alerts.lua	Sat Feb 05 17:36:08 2011 +0100
@@ -1,5 +1,5 @@
 local addon = select(2, ...);
-local mod = addon:NewModule("Alerts", "AceEvent-3.0", "AceTimer-3.0");
+local mod = addon:NewModule("Alerts", "AceTimer-3.0");
 
 local queue, cache = {}, {};
 
@@ -13,24 +13,6 @@
 	end, { "a", "alert" }, "|Hfunction:InventoriumCommandHandler:alert|h|cff00fff7/im alert|r|h (or /im a) - Rescan the items within all tracked groups and show item alerts for those items missing.");
 	
 	mod:Scan(false);
-	
-	--[[if addon.db.profile.defaults.scanInterval["00Login"] then
-		self:RegisterEvent("PLAYER_LOGIN", "Scan");
-	end
-	
-	if addon.db.profile.defaults.scanInterval["01Repeat5"] then
-		self:ScheduleTimer("Scan", 5 * 60);
-	elseif addon.db.profile.defaults.scanInterval["01Repeat10"] then
-		self:ScheduleTimer("Scan", 10 * 60);
-	elseif addon.db.profile.defaults.scanInterval["01Repeat15"] then
-		self:ScheduleTimer("Scan", 15 * 60);
-	elseif addon.db.profile.defaults.scanInterval["01Repeat30"] then
-		self:ScheduleTimer("Scan", 30 * 60);
-	elseif addon.db.profile.defaults.scanInterval["01Repeat60"] then
-		self:ScheduleTimer("Scan", 60 * 60);
-	elseif addon.db.profile.defaults.scanInterval["01Repeat120"] then
-		self:ScheduleTimer("Scan", 120 * 60);
-	end]]
 end
 
 local scanTypes = {
--- a/Modules/Queue.lua	Sat Feb 05 17:32:25 2011 +0100
+++ b/Modules/Queue.lua	Sat Feb 05 17:36:08 2011 +0100
@@ -1,5 +1,5 @@
 local addon = select(2, ...);
-local mod = addon:NewModule("Queue", "AceEvent-3.0", "AceTimer-3.0");
+local mod = addon:NewModule("Queue", "AceEvent-3.0");
 
 local _G = _G;
 local tonumber, tostring, pairs, sformat, smatch, slower, floor, ceil, tinsert, twipe = _G.tonumber, _G.tostring, _G.pairs, _G.string.format, _G.string.match, _G.string.lower, _G.floor, _G.ceil, _G.table.insert, _G.table.wipe;
--- a/Modules/Summary.lua	Sat Feb 05 17:32:25 2011 +0100
+++ b/Modules/Summary.lua	Sat Feb 05 17:36:08 2011 +0100
@@ -1,5 +1,5 @@
 local addon = select(2, ...); -- Get a reference to the main addon object
-local mod = addon:NewModule("Summary", "AceEvent-3.0", "AceTimer-3.0"); -- register a new module, Summary: resposible for building the summary window
+local mod = addon:NewModule("Summary"); -- register a new module, Summary: resposible for building the summary window
 
 local _G = _G; -- prevent looking up of the global table
 local sformat, sgsub, supper, mceil, mfloor, tinsert, twipe, tsort = _G.string.format, _G.string.gsub, _G.string.upper, _G.math.ceil, _G.math.floor, _G.table.insert, _G.table.wipe, _G.table.sort;