Clean up: removed deprecated libraries

This commit is contained in:
Tercio Jose
2022-07-23 15:44:04 -03:00
parent 16fc134f1a
commit 7609a99fb4
17 changed files with 6 additions and 2010 deletions
+3 -53
View File
@@ -10,16 +10,6 @@ local GetNumGroupMembers = GetNumGroupMembers
local CONST_INSPECT_ACHIEVEMENT_DISTANCE = 1 --Compare Achievements, 28 yards
local ItemUpgradeInfo = LibStub ("LibItemUpgradeInfo-1.0")
--local LibGroupInSpecT = LibStub ("LibGroupInSpecT-1.1") --disabled due to classic wow
local ItemUpgradeInfo
local LibGroupInSpecT
if (DetailsFramework.IsTimewalkWoW()) then
ItemUpgradeInfo = false
LibGroupInSpecT = false
end
local storageDebug = false --remember to turn this to false!
local store_instances = _detalhes.InstancesToStoreData
@@ -1921,13 +1911,8 @@ function ilvl_core:CalcItemLevel (unitid, guid, shout)
if (item) then
local _, _, itemRarity, iLevel, _, _, _, _, equipSlot = GetItemInfo (item)
if (iLevel) then
if (ItemUpgradeInfo) then
local ilvl = ItemUpgradeInfo:GetUpgradedItemLevel (item)
item_level = item_level + (ilvl or iLevel)
else
item_level = item_level + iLevel
end
item_level = item_level + iLevel
--> 16 = main hand 17 = off hand
--> if using a two-hand, ignore the off hand slot
if (equip_id == 16 and two_hand [equipSlot]) then
@@ -2301,36 +2286,6 @@ function _detalhes:GetSpecFromSerial (guid)
return _detalhes.cached_specs [guid]
end
if (LibGroupInSpecT) then
function _detalhes:LibGroupInSpecT_UpdateReceived (event, guid, unitid, info)
--> update talents
local talents = _detalhes.cached_talents [guid] or {}
local i = 1
for talentId, _ in pairs (info.talents) do
talents [i] = talentId
i = i + 1
end
_detalhes.cached_talents [guid] = talents
if (_detalhes.debug) then
_detalhes:Msg ("(debug) received GroupInSpecT_Update from user", guid)
end
--> update spec
if (info.global_spec_id and info.global_spec_id ~= 0) then
if (not _detalhes.class_specs_coords [info.global_spec_id]) then
print ("Details! Spec Id Invalid:", info.global_spec_id, info.name)
else
_detalhes.cached_specs [guid] = info.global_spec_id
end
end
--print ("LibGroupInSpecT Received from", info.name, info.global_spec_id)
end
LibGroupInSpecT.RegisterCallback (_detalhes, "GroupInSpecT_Update", "LibGroupInSpecT_UpdateReceived")
end
--------------------------------------------------------------------------------------------------------------------------------------------
--compress data
@@ -2511,12 +2466,7 @@ if (DetailsFramework.IsTBCWow()) then
if (item) then
local _, _, itemRarity, iLevel, _, _, _, _, equipSlot = GetItemInfo(item)
if (iLevel) then
if (ItemUpgradeInfo) then
local ilvl = ItemUpgradeInfo:GetUpgradedItemLevel (item)
item_level = item_level + (ilvl or iLevel)
else
item_level = item_level + iLevel
end
item_level = item_level + iLevel
--> 16 = main hand 17 = off hand
--> if using a two-hand, ignore the off hand slot