mirror of
https://github.com/ppy/osu
synced 2025-01-02 20:32:10 +00:00
Cleanups
This commit is contained in:
parent
41391a6627
commit
d431dd59a8
@ -65,7 +65,6 @@ namespace osu.Game.Beatmaps
|
||||
{
|
||||
var result = new List<T>(hitObjects.Count);
|
||||
|
||||
// ReSharper disable once ForCanBeConvertedToForeach
|
||||
foreach (var obj in hitObjects)
|
||||
{
|
||||
if (obj is T tObj)
|
||||
|
@ -69,9 +69,7 @@ namespace osu.Game.Beatmaps.Formats
|
||||
|
||||
protected string StripComments(string line)
|
||||
{
|
||||
const string comment_prefix = "//";
|
||||
|
||||
var index = line.AsSpan().IndexOf(comment_prefix.AsSpan());
|
||||
var index = line.AsSpan().IndexOf("//".AsSpan());
|
||||
if (index > 0)
|
||||
return line.Substring(0, index);
|
||||
return line;
|
||||
|
Loading…
Reference in New Issue
Block a user