1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

Remove redundant code

This commit is contained in:
smoogipoo 2019-10-16 19:33:18 +09:00
parent 5ac5e34f85
commit 2d4b7dc361

View File

@ -48,11 +48,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
float radius = DistanceSpacing;
int radialCount = Math.Max(1, (int)Math.Round(distance / radius));
if (radialCount <= 0)
return position;
Vector2 normalisedDirection = direction * new Vector2(1f / distance);
return CentrePosition + normalisedDirection * radialCount * radius;
}
}