# HG changeset patch # User madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 # Date 1366853405 0 # Node ID e4dec2d465f564d782a97a8791a47d1a8965e71e # Parent a6f4c8f86130b7979d475bc7b3baf62d80ee9aa3 Removed the Load methods in WowObjects, they were never called (and likely broken). diff -r a6f4c8f86130 -r e4dec2d465f5 WowObjects.lua --- a/WowObjects.lua Thu Apr 25 01:30:00 2013 +0000 +++ b/WowObjects.lua Thu Apr 25 01:30:05 2013 +0000 @@ -54,27 +54,6 @@ DoNothing = function() end, - Load = function(object) - if type == "item" then - object = CyborgMMO_WowItem.Load(object) - elseif type == "macro" then - object = CyborgMMO_WowMacro.Load(object) - elseif type == "spell" then - object = CyborgMMO_WowSpell.Load(object) - elseif type == "petaction" then - object = CyborgMMO_WowSpell.Load(object) - -- elseif type == "merchant" then - -- object = SlotMerchant.new(detail, subdetail) - elseif type == "companion" then - object = CyborgMMO_WowCompanion.Load(object) - elseif type == "equipmentset" then - object = CyborgMMO_WowEquipmentSet.Load(object) - else - object = CyborgMMO_WowObject.new(type, nil, nil) - end - return object - end, - -- Static Methods -- Create = function(objectType, detail, subdetail) local object @@ -267,13 +246,6 @@ return self end, - - Load = function(object) - local o = WowSpell.new(object.Type, object.Detail, object.Subdetail) - o.Name = object.Name - o.Texture = object.Texture - return o - end, } -- WowMacro Class -- @@ -345,11 +317,6 @@ return self end, - - Load = function(object) - local o = WowCompanion.new(object.index, object.SubType) - return o - end, } -- WowMerchant Class --