Remove double definition of Shape:moveTo()

This commit is contained in:
Matthias Richter 2011-02-02 22:17:39 +01:00
parent ec10437644
commit 1d8fee8b7a

View File

@ -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