mirror of
https://github.com/osukey/osukey.git
synced 2025-05-17 11:37:32 +09: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);
|
var result = new List<T>(hitObjects.Count);
|
||||||
|
|
||||||
// ReSharper disable once ForCanBeConvertedToForeach
|
|
||||||
foreach (var obj in hitObjects)
|
foreach (var obj in hitObjects)
|
||||||
{
|
{
|
||||||
if (obj is T tObj)
|
if (obj is T tObj)
|
||||||
|
@ -69,9 +69,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
protected string StripComments(string line)
|
protected string StripComments(string line)
|
||||||
{
|
{
|
||||||
const string comment_prefix = "//";
|
var index = line.AsSpan().IndexOf("//".AsSpan());
|
||||||
|
|
||||||
var index = line.AsSpan().IndexOf(comment_prefix.AsSpan());
|
|
||||||
if (index > 0)
|
if (index > 0)
|
||||||
return line.Substring(0, index);
|
return line.Substring(0, index);
|
||||||
return line;
|
return line;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user