function Registry.remove(l,C)local x=l.objects[C]if x then x:destroy()end l.objects[C]=nil end

function Registry:remove(key)
	local object = self.objects[key]
	if object then
		object:destroy()
	end
	self.objects[key] = nil
end
