From 77c25484f14cc600103692cdcd4558f7364dd07d Mon Sep 17 00:00:00 2001 From: Sandor Takacs Date: Tue, 6 Sep 2016 16:28:58 +0200 Subject: [PATCH] Remove MyBagsCache compatibility code --- MyBagsCore/MyBags.lua | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/MyBagsCore/MyBags.lua b/MyBagsCore/MyBags.lua index c6d1337..5c7e545 100644 --- a/MyBagsCore/MyBags.lua +++ b/MyBagsCore/MyBags.lua @@ -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",