From 1a3ce8c568c2358eebd2e5b605fe396747772fff Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 4 Jul 2010 18:26:51 -0400 Subject: [PATCH] Removed some dead code. --- Waypoint.lua | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/Waypoint.lua b/Waypoint.lua index 4807826..22c76f7 100644 --- a/Waypoint.lua +++ b/Waypoint.lua @@ -472,22 +472,6 @@ function addon:AddWaypoint(recipe_id, acquire_id, location_id, npc_id) end end - -- local ARLWorldMap = CreateFrame("Button","ARLWorldMap",WorldMapDetailFrame) - -- ARLWorldMap:ClearAllPoints() - -- ARLWorldMap:SetWidth(8) - -- ARLWorldMap:SetHeight(8) - -- ARLWorldMap.icon = ARLWorldMap:CreateTexture("ARTWORK") - -- ARLWorldMap.icon:SetTexture(icontext) - -- ARLWorldMap.icon:SetAllPoints() - - -- local ARLMiniMap = CreateFrame("Button","ARLMiniMap",MiniMap) - -- ARLMiniMap:ClearAllPoints() - -- ARLMiniMap:SetWidth(8) - -- ARLMiniMap:SetHeight(8) - -- ARLMiniMap.icon = ARLMiniMap:CreateTexture("ARTWORK") - -- ARLMiniMap.icon:SetTexture(icontext) - -- ARLMiniMap.icon:SetAllPoints() - for entry, spell_id in pairs(maplist) do local name = string.format("%s (%s)", entry.name or _G.UNKNOWN, recipe_list[spell_id].name) local x = entry.coord_x @@ -516,18 +500,18 @@ function addon:AddWaypoint(recipe_id, acquire_id, location_id, npc_id) y = info.y name = name .. " (" .. location .. ")" else - addon:Debug("No continent/zone map match for ID %d. Location: %s.", spell_id, location) + self:Debug("No continent/zone map match for ID %d. Location: %s.", spell_id, location) end --@alpha@ if (x < -100) or (x > 100) or (y < -100) or (y > 100) then - addon:Debug("Invalid location coordinates for ID %d. Location: %s.", spell_id, location) + self:Debug("Invalid location coordinates for ID %d. Location: %s.", spell_id, location) end --@end-alpha@ if zone and continent then if x == 0 and y == 0 and not INSTANCE_LOCATIONS[location] then - addon:Debug("Location is \"0, 0\" for ID %d. Location: %s.", spell_id, location) + self:Debug("Location is \"0, 0\" for ID %d. Location: %s.", spell_id, location) end if _G.TomTom then -- 1.7.9.5