mirror of
https://github.com/ppy/osu.git
synced 2025-03-11 15:27:20 +08:00
remove unnecessary code
This commit is contained in:
parent
1f19d72474
commit
e380254386
@ -80,7 +80,7 @@ namespace osu.Game.Screens.Select.Details
|
||||
positiveRatings.Text = ratings.GetRange(5, 5).Sum().ToString();
|
||||
ratingsBar.Length = (float)ratings.GetRange(0, 5).Sum() / ratings.Sum();
|
||||
|
||||
ratingsGraph.Values = ratings.Select(rating => (float)rating / ratings.Max());
|
||||
ratingsGraph.Values = ratings.Select(rating => (float)rating);
|
||||
}
|
||||
}
|
||||
|
||||
@ -114,9 +114,9 @@ namespace osu.Game.Screens.Select.Details
|
||||
|
||||
private void calcRetryAndFailGraph()
|
||||
{
|
||||
failGraph.Values = fails.Select(fail => (float)fail / fails.Max());
|
||||
List<float> retryAndFails = retries.Select((retry, index) => (float)retry + fails[index]).ToList();
|
||||
retryGraph.Values = retryAndFails.Select(value => value / retryAndFails.Max());
|
||||
failGraph.Values = fails.Select(fail => (float)fail);
|
||||
retryGraph.Values = retries.Select((retry, index) => (float)retry + fails[index]);
|
||||
|
||||
}
|
||||
|
||||
public BeatmapDetails()
|
||||
|
Loading…
x
Reference in New Issue
Block a user