Skip to content

Commit 89ef7c9

Browse files
committed
remove unused code
1 parent 1c113b1 commit 89ef7c9

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Myslot.lua

+1-11
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ function MySlot:RecoverData(msg, opt)
749749
return
750750
end
751751

752-
if curIndex ~= index or curType ~= slotType or slotType == MYSLOT_MACRO then -- macro always test
752+
if curIndex ~= index or curType ~= slotType then
753753
if slotType == MYSLOT_SPELL or slotType == MYSLOT_FLYOUT or slotType == MYSLOT_COMPANION then
754754
if slotType == MYSLOT_SPELL or slotType == MYSLOT_COMPANION then
755755
PickupSpell(index)
@@ -793,16 +793,6 @@ function MySlot:RecoverData(msg, opt)
793793
end
794794
elseif slotType == MYSLOT_ITEM then
795795
PickupItem(index)
796-
-- elseif slotType == MYSLOT_MACRO then
797-
-- local macroid = macro[index]
798-
799-
-- if not macroid then
800-
-- MySlot:Print(L["Ignore unknown macro [id=%s]"]:format(index))
801-
-- end
802-
803-
-- if curType ~= MYSLOT_MACRO or curIndex ~= macroid then
804-
-- PickupMacro(macroid)
805-
-- end
806796
elseif slotType == MYSLOT_SUMMONPET and strindex and strindex ~= curIndex then
807797
C_PetJournal.PickupPet(strindex, false)
808798
if not GetCursorInfo() then

0 commit comments

Comments
 (0)