Quantcast

A little cleanup

Darthpred [06-30-14 - 18:46]
A little cleanup
Filename
ElvUI_SLE/config/profile.lua
ElvUI_SLE/dev/options.lua
ElvUI_SLE/modules/autorelease/autorelease.lua
ElvUI_SLE/modules/chat/chat.lua
ElvUI_SLE/modules/loot/loot.lua
diff --git a/ElvUI_SLE/config/profile.lua b/ElvUI_SLE/config/profile.lua
index b9bafe5..3d096b6 100755
--- a/ElvUI_SLE/config/profile.lua
+++ b/ElvUI_SLE/config/profile.lua
@@ -158,7 +158,7 @@ P['sle'] = {
 		},
 		['chathandle'] = false,
 	},
---E.db.sle.dt.guild.totals
+
 	--DT Options
 	['dt'] = {
 		['friends'] = {
diff --git a/ElvUI_SLE/dev/options.lua b/ElvUI_SLE/dev/options.lua
index 6bf7890..8c90cf4 100755
--- a/ElvUI_SLE/dev/options.lua
+++ b/ElvUI_SLE/dev/options.lua
@@ -211,9 +211,6 @@ if SLE:Auth() then
 							get = function() return addonChannel end,
 							set = function(_, value)
 								addonChannel = value
-								--if addonChannel == "BNET" then
-								--	SLE:GetBNetInfo()
-								--end
 							end,
 							values = {
 								['GUILD'] = 'Guild',
@@ -232,9 +229,6 @@ if SLE:Auth() then
 							get = function() return bnetP end,
 							set = function(_, value)
 								bnetP = value
-								--if addonChannel == "BNET" then
-								--	SLE:GetBNetInfo()
-								--end
 							end,
 							values = function()
 								SLE:GetBNetInfo()
diff --git a/ElvUI_SLE/modules/autorelease/autorelease.lua b/ElvUI_SLE/modules/autorelease/autorelease.lua
index 04f5184..7d6930b 100755
--- a/ElvUI_SLE/modules/autorelease/autorelease.lua
+++ b/ElvUI_SLE/modules/autorelease/autorelease.lua
@@ -1,5 +1,3 @@
---Credit to Repooc.
---Remade his auto release featule to module which allows profile setting of the function not the global one.
 local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore
 local AR = E:NewModule('SLE_AutoRelease', 'AceHook-3.0', 'AceEvent-3.0');
 local myclass = E.myclass
diff --git a/ElvUI_SLE/modules/chat/chat.lua b/ElvUI_SLE/modules/chat/chat.lua
index d9b10af..8dcf604 100755
--- a/ElvUI_SLE/modules/chat/chat.lua
+++ b/ElvUI_SLE/modules/chat/chat.lua
@@ -15,7 +15,6 @@ local lfgChannels = {
 }

 local Myname = E.myname
---local Myrealm = E.myrealm
 local GetGuildRosterInfo = GetGuildRosterInfo
 local IsInGuild = IsInGuild
 local GuildMaster = ""
@@ -24,8 +23,6 @@ local GMName, GMRealm
 local len, gsub, find, sub, gmatch, format, random = string.len, string.gsub, string.find, string.sub, string.gmatch, string.format, math.random
 local tinsert, tremove, tsort, twipe, tconcat = table.insert, table.remove, table.sort, table.wipe, table.concat

---Myrealm = Myrealm:gsub(' ', '')
-
 local PLAYER_REALM = gsub(E.myrealm,'[%s%-]','')
 local PLAYER_NAME = Myname.."-"..PLAYER_REALM

diff --git a/ElvUI_SLE/modules/loot/loot.lua b/ElvUI_SLE/modules/loot/loot.lua
index 08c6d24..0bcdad6 100755
--- a/ElvUI_SLE/modules/loot/loot.lua
+++ b/ElvUI_SLE/modules/loot/loot.lua
@@ -35,7 +35,7 @@ function LT:Announce()
 	local m = 0
 	local q = E.db.sle.loot.quality == "EPIC" and 4 or E.db.sle.loot.quality == "RARE" and 3 or E.db.sle.loot.quality == "UNCOMMON" and 2
 	local n = 0
-	--local inGroup, inRaid, inPartyLFG = IsInGroup(), IsInRaid(), IsPartyLFG()
+
 	local p, chat
 	if not IsInGroup() then return end -- not in group, exit.
 	if (LT:Check() and E.db.sle.loot.auto) or (IsLeftControlKeyDown() and (IsInGroup() or IsInRaid())) then