1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 19:42:55 +08:00

Remove LINQ cast in HUDOverlay

This commit is contained in:
Andrei Zavatski 2024-01-26 01:03:22 +03:00
parent baaf33d995
commit 542f571dee

View File

@ -5,7 +5,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
@ -259,14 +258,14 @@ namespace osu.Game.Screens.Play
Vector2? highestBottomScreenSpace = null;
// LINQ cast can be removed when IDrawable interface includes Anchor / RelativeSizeAxes.
foreach (var element in mainComponents.Components.Cast<Drawable>())
processDrawable(element);
// cast can be removed when IDrawable interface includes Anchor / RelativeSizeAxes.
foreach (var element in mainComponents.Components)
processDrawable(element as Drawable);
if (rulesetComponents != null)
{
foreach (var element in rulesetComponents.Components.Cast<Drawable>())
processDrawable(element);
foreach (var element in rulesetComponents.Components)
processDrawable(element as Drawable);
}
if (lowestTopScreenSpaceRight.HasValue)