mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 12:53:11 +08:00
No more caching
This commit is contained in:
parent
706c26c32b
commit
e32eec9259
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user