1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 10:02:59 +08:00

Remove unnecessary assigns of BeatmapSetInfo.Metadata

This commit is contained in:
Dean Herbert 2021-11-22 16:22:31 +09:00
parent fda529de26
commit 6a671b0a52
6 changed files with 0 additions and 6 deletions

View File

@ -154,7 +154,6 @@ namespace osu.Game.Tests.Online
Debug.Assert(info.BeatmapSet != null); Debug.Assert(info.BeatmapSet != null);
info.BeatmapSet.Beatmaps.Add(info); info.BeatmapSet.Beatmaps.Add(info);
info.BeatmapSet.Metadata = info.Metadata;
info.MD5Hash = stream.ComputeMD5Hash(); info.MD5Hash = stream.ComputeMD5Hash();
info.Hash = stream.ComputeSHA2Hash(); info.Hash = stream.ComputeSHA2Hash();
} }

View File

@ -97,7 +97,6 @@ namespace osu.Game.Tests.Resources
OnlineID = setId, OnlineID = setId,
Hash = new MemoryStream(Encoding.UTF8.GetBytes(Guid.NewGuid().ToString())).ComputeMD5Hash(), Hash = new MemoryStream(Encoding.UTF8.GetBytes(Guid.NewGuid().ToString())).ComputeMD5Hash(),
DateAdded = DateTimeOffset.UtcNow, DateAdded = DateTimeOffset.UtcNow,
Metadata = metadata
}; };
foreach (var b in getBeatmaps(difficultyCount ?? RNG.Next(1, 20))) foreach (var b in getBeatmaps(difficultyCount ?? RNG.Next(1, 20)))

View File

@ -58,7 +58,6 @@ namespace osu.Game.Tests.Visual.Multiplayer
{ {
OnlineID = 10, OnlineID = 10,
Hash = Guid.NewGuid().ToString().ComputeMD5Hash(), Hash = Guid.NewGuid().ToString().ComputeMD5Hash(),
Metadata = metadata,
DateAdded = DateTimeOffset.UtcNow DateAdded = DateTimeOffset.UtcNow
}; };

View File

@ -109,7 +109,6 @@ namespace osu.Game.Tests.Visual.Navigation
{ {
Hash = Guid.NewGuid().ToString(), Hash = Guid.NewGuid().ToString(),
OnlineID = i, OnlineID = i,
Metadata = metadata,
Beatmaps = Beatmaps =
{ {
new BeatmapInfo new BeatmapInfo

View File

@ -40,7 +40,6 @@ namespace osu.Game.Tests.Visual.Navigation
{ {
Hash = Guid.NewGuid().ToString(), Hash = Guid.NewGuid().ToString(),
OnlineID = 1, OnlineID = 1,
Metadata = metadata,
Beatmaps = Beatmaps =
{ {
new BeatmapInfo new BeatmapInfo

View File

@ -83,7 +83,6 @@ namespace osu.Game.Beatmaps
var set = new BeatmapSetInfo var set = new BeatmapSetInfo
{ {
Metadata = metadata,
Beatmaps = Beatmaps =
{ {
new BeatmapInfo new BeatmapInfo