mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 00:02:54 +08:00
Remove unnecessary assigns of BeatmapSetInfo.Metadata
This commit is contained in:
parent
fda529de26
commit
6a671b0a52
@ -154,7 +154,6 @@ namespace osu.Game.Tests.Online
|
||||
Debug.Assert(info.BeatmapSet != null);
|
||||
|
||||
info.BeatmapSet.Beatmaps.Add(info);
|
||||
info.BeatmapSet.Metadata = info.Metadata;
|
||||
info.MD5Hash = stream.ComputeMD5Hash();
|
||||
info.Hash = stream.ComputeSHA2Hash();
|
||||
}
|
||||
|
@ -97,7 +97,6 @@ namespace osu.Game.Tests.Resources
|
||||
OnlineID = setId,
|
||||
Hash = new MemoryStream(Encoding.UTF8.GetBytes(Guid.NewGuid().ToString())).ComputeMD5Hash(),
|
||||
DateAdded = DateTimeOffset.UtcNow,
|
||||
Metadata = metadata
|
||||
};
|
||||
|
||||
foreach (var b in getBeatmaps(difficultyCount ?? RNG.Next(1, 20)))
|
||||
|
@ -58,7 +58,6 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
{
|
||||
OnlineID = 10,
|
||||
Hash = Guid.NewGuid().ToString().ComputeMD5Hash(),
|
||||
Metadata = metadata,
|
||||
DateAdded = DateTimeOffset.UtcNow
|
||||
};
|
||||
|
||||
|
@ -109,7 +109,6 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
{
|
||||
Hash = Guid.NewGuid().ToString(),
|
||||
OnlineID = i,
|
||||
Metadata = metadata,
|
||||
Beatmaps =
|
||||
{
|
||||
new BeatmapInfo
|
||||
|
@ -40,7 +40,6 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
{
|
||||
Hash = Guid.NewGuid().ToString(),
|
||||
OnlineID = 1,
|
||||
Metadata = metadata,
|
||||
Beatmaps =
|
||||
{
|
||||
new BeatmapInfo
|
||||
|
@ -83,7 +83,6 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
var set = new BeatmapSetInfo
|
||||
{
|
||||
Metadata = metadata,
|
||||
Beatmaps =
|
||||
{
|
||||
new BeatmapInfo
|
||||
|
Loading…
Reference in New Issue
Block a user