From faa94e876371dc74a056e6cc0024e9aa1fb74480 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Sat, 26 Jun 2010 20:03:15 -0500 Subject: [PATCH] Removed duplicate WeightsWatcher declarations --- GemIds.lua | 4 +--- Regexps.lua | 4 ---- WeightsWatcher.lua | 4 ---- config.lua | 4 ---- weights.lua | 4 ---- 5 files changed, 1 insertion(+), 19 deletions(-) diff --git a/GemIds.lua b/GemIds.lua index 3a7c8a9..2a48d56 100644 --- a/GemIds.lua +++ b/GemIds.lua @@ -1,6 +1,4 @@ -if not WeightsWatcher then - WeightsWatcher = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceHook-2.1") -end +WeightsWatcher = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceHook-2.1") -- format: -- [source] = { diff --git a/Regexps.lua b/Regexps.lua index 80b7c7e..8f561b2 100644 --- a/Regexps.lua +++ b/Regexps.lua @@ -1,7 +1,3 @@ -if not WeightsWatcher then - WeightsWatcher = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceHook-2.1") -end - local patternCategories = { "elixir", "enchant", diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua index 242869a..4059196 100644 --- a/WeightsWatcher.lua +++ b/WeightsWatcher.lua @@ -1,7 +1,3 @@ -if not WeightsWatcher then - WeightsWatcher = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceHook-2.1") -end - currentHooks = {} ww_normalStatsMetatable = { diff --git a/config.lua b/config.lua index a949a4e..57609ff 100644 --- a/config.lua +++ b/config.lua @@ -1,7 +1,3 @@ -if not WeightsWatcher then - WeightsWatcher = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceHook-2.1") -end - function commandHandler(msg) if msg == "config" then ww_weights:Hide() diff --git a/weights.lua b/weights.lua index a7ceb1d..cbd2462 100644 --- a/weights.lua +++ b/weights.lua @@ -1,7 +1,3 @@ -if not WeightsWatcher then - WeightsWatcher = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceHook-2.1") -end - StaticPopupDialogs["WW_CONFIRM_DISCARD_CHANGES"] = { text = "You have unsaved changes for this weight.", button1 = "Discard", -- 1.7.9.5