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:
parent
5ac5e34f85
commit
2d4b7dc361
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user