mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 22:33:05 +08:00
Remove LINQ cast in HUDOverlay
This commit is contained in:
parent
baaf33d995
commit
542f571dee
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user