1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-05 15:05:57 +02:00

Remove unused code.

This commit is contained in:
James Gillham 2021-05-23 11:59:44 +01:00
parent fa6f70c235
commit 835e3064c4

View File

@ -1531,9 +1531,8 @@ end
function Builders.ring_weighted_pattern(pattern, thickness)
local weights = Builders.prepare_weighted_array(pattern)
local total = weights.total
--local count = #pattern
local scale = 1 / thickness
return function(x, y, world)
local d = sqrt(x * x + y * y)
local i = (d * scale) % total