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:
parent
fda529de26
commit
6a671b0a52
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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)))
|
||||||
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -83,7 +83,6 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
var set = new BeatmapSetInfo
|
var set = new BeatmapSetInfo
|
||||||
{
|
{
|
||||||
Metadata = metadata,
|
|
||||||
Beatmaps =
|
Beatmaps =
|
||||||
{
|
{
|
||||||
new BeatmapInfo
|
new BeatmapInfo
|
||||||
|
Loading…
Reference in New Issue
Block a user