From 1642d10816cc72eaaaea8b7ba04aec4bfd904355 Mon Sep 17 00:00:00 2001 From: Qais Patankar Date: Wed, 16 Apr 2014 16:23:04 +0100 Subject: [PATCH] Removed variables that were only used once Overoptimisation. --- objects/frame.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/objects/frame.lua b/objects/frame.lua index 2be8a95..359de1e 100644 --- a/objects/frame.lua +++ b/objects/frame.lua @@ -762,15 +762,12 @@ end --]]--------------------------------------------------------- function newobject:MakeTop() - local x, y = love.mouse.getPosition() local key = 0 - local base = loveframes.base local basechildren = base.children local numbasechildren = #basechildren - local parent = self.parent -- check to see if the object's parent is not the base object - if parent ~= base then + if loveframes.parent ~= loveframes.base then local baseparent = self:GetBaseParent() if baseparent.type == "frame" then baseparent:MakeTop()