1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 11:42:56 +08:00

Remove commented out italic code

It's a holdover from the Exo days (anyone remember those?) and hasn't
been relevant for years, so why keep it.
This commit is contained in:
Bartłomiej Dach 2023-12-01 13:31:09 +01:00
parent cdaff30aa6
commit d97ae8df6a
No known key found for this signature in database

View File

@ -106,11 +106,8 @@ namespace osu.Game.Tests.Visual.Online
});
AddAssert("msg has the right action", () => newLine.Message.Links.Select(l => l.Action), () => Is.EqualTo(expectedActions));
//AddAssert("msg is " + (isAction ? "italic" : "not italic"), () => newLine.ContentFlow.Any() && isAction == isItalic());
AddAssert($"msg shows {expectedActions.Length} link(s)", isShowingLinks);
//bool isItalic() => newLine.ContentFlow.Where(d => d is OsuSpriteText).Cast<OsuSpriteText>().All(sprite => sprite.Font.Italics);
bool isShowingLinks()
{
bool hasBackground = !string.IsNullOrEmpty(newLine.Message.Sender.Colour);