This commit is contained in:
smoogipoo 2018-10-17 10:53:21 +09:00
parent 41391a6627
commit d431dd59a8
2 changed files with 1 additions and 4 deletions

View File

@ -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)

View File

@ -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;