Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 committed Aug 5, 2024
1 parent 1c113b1 commit 89ef7c9
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Myslot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ function MySlot:RecoverData(msg, opt)
return
end

if curIndex ~= index or curType ~= slotType or slotType == MYSLOT_MACRO then -- macro always test
if curIndex ~= index or curType ~= slotType then
if slotType == MYSLOT_SPELL or slotType == MYSLOT_FLYOUT or slotType == MYSLOT_COMPANION then
if slotType == MYSLOT_SPELL or slotType == MYSLOT_COMPANION then
PickupSpell(index)
Expand Down Expand Up @@ -793,16 +793,6 @@ function MySlot:RecoverData(msg, opt)
end
elseif slotType == MYSLOT_ITEM then
PickupItem(index)
-- elseif slotType == MYSLOT_MACRO then
-- local macroid = macro[index]

-- if not macroid then
-- MySlot:Print(L["Ignore unknown macro [id=%s]"]:format(index))
-- end

-- if curType ~= MYSLOT_MACRO or curIndex ~= macroid then
-- PickupMacro(macroid)
-- end
elseif slotType == MYSLOT_SUMMONPET and strindex and strindex ~= curIndex then
C_PetJournal.PickupPet(strindex, false)
if not GetCursorInfo() then
Expand Down

0 comments on commit 89ef7c9

Please sign in to comment.