1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:33:21 +08:00

No more caching

This commit is contained in:
smoogipoo 2018-03-13 15:22:46 +09:00
parent 706c26c32b
commit e32eec9259

View File

@ -17,15 +17,11 @@ namespace osu.Game.Tests.Beatmaps
BeatmapInfo.Ruleset = ruleset;
}
private static Beatmap testBeatmapCache;
private static Beatmap createTestBeatmap()
{
if (testBeatmapCache != null)
return testBeatmapCache;
using (var stream = new MemoryStream(Encoding.UTF8.GetBytes(test_beatmap_data)))
using (var reader = new StreamReader(stream))
return testBeatmapCache = Decoder.GetDecoder<Beatmap>(reader).Decode(reader);
return Decoder.GetDecoder<Beatmap>(reader).Decode(reader);
}
private const string test_beatmap_data =