Remove MyBagsCache compatibility code
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
local MBC = "MyBagsCore-1.0"
|
local MBC = "MyBagsCore-1.1"
|
||||||
local MBC_MINOR = "2015.08.28.2"
|
local MBC_MINOR = "2016.09.06.1"
|
||||||
if not LibStub then
|
if not LibStub then
|
||||||
error(MBC .. " requires LibStub.")
|
error(MBC .. " requires LibStub.")
|
||||||
end
|
end
|
||||||
@ -541,9 +541,6 @@ function MyBagsCore:GetCash()
|
|||||||
local player, realm = self:SplitString(self:GetCurrentPlayer(), L["CHARACTER_DELIMITOR"])
|
local player, realm = self:SplitString(self:GetCurrentPlayer(), L["CHARACTER_DELIMITOR"])
|
||||||
local char_key = DS:GetCharacter(player, realm)
|
local char_key = DS:GetCharacter(player, realm)
|
||||||
return DS:GetMoney(char_key)
|
return DS:GetMoney(char_key)
|
||||||
elseif IsAddOnLoaded("MyBagsCache") then
|
|
||||||
local charID = self:GetCurrentPlayer()
|
|
||||||
return MyBagsCache:GetCash(charID)
|
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
@ -699,22 +696,6 @@ function MyBagsCore:GetInfoDataStore(bag, slot)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function MyBagsCore:GetInfoMyBagsCache(bag,slot)
|
|
||||||
local charID = self:GetCurrentPlayer()
|
|
||||||
local texture, count, ID, locked, quality, readable, name, i_type
|
|
||||||
if self.isEquipment then
|
|
||||||
texture, count, ID, quality, name, i_type = MyBagsCache:GetInfo("equipment", bag, charID)
|
|
||||||
else
|
|
||||||
texture, count, ID, quality, name, i_type = MyBagsCache:GetInfo(bag, slot, charID)
|
|
||||||
if not slot and ID then
|
|
||||||
readable = IsSpecialtyBagFromID(ID)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
count = tonum(count)
|
|
||||||
return texture, count, ID, nil, quality, readable, name, i_type
|
|
||||||
end
|
|
||||||
|
|
||||||
function MyBagsCore:GetInfoNone(bag, slot)
|
function MyBagsCore:GetInfoNone(bag, slot)
|
||||||
return nil, 0, nil, nil, nil, nil, nil, nil
|
return nil, 0, nil, nil, nil, nil, nil, nil
|
||||||
end
|
end
|
||||||
@ -1906,7 +1887,6 @@ local mixins = {
|
|||||||
"GetInfo",
|
"GetInfo",
|
||||||
"GetInfoLive",
|
"GetInfoLive",
|
||||||
"GetInfoDataStore",
|
"GetInfoDataStore",
|
||||||
"GetInfoMyBagsCache",
|
|
||||||
"GetInfoNone",
|
"GetInfoNone",
|
||||||
"GetSlotCount",
|
"GetSlotCount",
|
||||||
"ItemButton_OnLoad",
|
"ItemButton_OnLoad",
|
||||||
|
|||||||
Reference in New Issue
Block a user