function Registry.remove(n,G)local Q=n.objects[G]if Q then Q:destroy()end n.objects[G]=nil end
--[[
    Calls destroy() on the object associated with the given key and removes it from
    the registry
]]
function Registry:remove(key)
	local object = self.objects[key]
	if object then
		object:destroy()
	end
	self.objects[key] = nil
end
