From 1d8fee8b7a94f1c238f1a9dd0ec9efdd9efe530f Mon Sep 17 00:00:00 2001 From: Matthias Richter Date: Wed, 2 Feb 2011 22:17:39 +0100 Subject: [PATCH] Remove double definition of Shape:moveTo() --- shapes.lua | 5 ----- 1 file changed, 5 deletions(-) diff --git a/shapes.lua b/shapes.lua index 220d0af..df7b600 100644 --- a/shapes.lua +++ b/shapes.lua @@ -57,11 +57,6 @@ end local Shape = Class{name = 'Shape', function(self, t) self._type = t end} -function Shape:moveTo(x,y) - local current = vector( self:center() ) - local to = vector.isvector(x) and x or vector(x,y) - self:move( to-current ) -end function Shape:moveTo(x,y) if y then x = vector(x,y) end