From d330b39db492a8b85b79a93e5ed1d6018db0b1bb Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 14 Sep 2017 13:42:58 +0900 Subject: [PATCH] Remove max --- osu.Game/Screens/Play/SongProgressGraph.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osu.Game/Screens/Play/SongProgressGraph.cs b/osu.Game/Screens/Play/SongProgressGraph.cs index 4455b97a7e..38c680902a 100644 --- a/osu.Game/Screens/Play/SongProgressGraph.cs +++ b/osu.Game/Screens/Play/SongProgressGraph.cs @@ -1,7 +1,6 @@ // Copyright (c) 2007-2017 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE -using System; using System.Linq; using System.Collections.Generic; using System.Diagnostics; @@ -36,7 +35,7 @@ namespace osu.Game.Screens.Play foreach (var h in objects) { - var endTime = Math.Max((h as IHasEndTime)?.EndTime ?? h.StartTime, h.StartTime); + var endTime = (h as IHasEndTime)?.EndTime ?? h.StartTime; Debug.Assert(endTime >= h.StartTime);