Remove MyBagsCache compatibility code

This commit is contained in:
2016-09-06 16:28:58 +02:00
parent f75aa0bd11
commit 77c25484f1

View File

@ -1,5 +1,5 @@
local MBC = "MyBagsCore-1.0"
local MBC_MINOR = "2015.08.28.2"
local MBC = "MyBagsCore-1.1"
local MBC_MINOR = "2016.09.06.1"
if not LibStub then
error(MBC .. " requires LibStub.")
end
@ -541,9 +541,6 @@ function MyBagsCore:GetCash()
local player, realm = self:SplitString(self:GetCurrentPlayer(), L["CHARACTER_DELIMITOR"])
local char_key = DS:GetCharacter(player, realm)
return DS:GetMoney(char_key)
elseif IsAddOnLoaded("MyBagsCache") then
local charID = self:GetCurrentPlayer()
return MyBagsCache:GetCash(charID)
end
return nil
end
@ -699,22 +696,6 @@ function MyBagsCore:GetInfoDataStore(bag, slot)
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)
return nil, 0, nil, nil, nil, nil, nil, nil
end
@ -1906,7 +1887,6 @@ local mixins = {
"GetInfo",
"GetInfoLive",
"GetInfoDataStore",
"GetInfoMyBagsCache",
"GetInfoNone",
"GetSlotCount",
"ItemButton_OnLoad",