remove CreateNotice method and move implementation to local

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-05-26 15:01:16 +07:00
parent eeb6647bc5
commit 47cbbee4d1
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -22,7 +22,7 @@ namespace osu.Game.Overlays.Wiki.Markdown
switch (markdownObject)
{
case YamlFrontMatterBlock yamlFrontMatterBlock:
container.Add(CreateNotice(yamlFrontMatterBlock));
container.Add(new WikiNoticeContainer(yamlFrontMatterBlock));
return;
}
@ -33,8 +33,6 @@ namespace osu.Game.Overlays.Wiki.Markdown
protected override MarkdownParagraph CreateParagraph(ParagraphBlock paragraphBlock, int level) => new WikiMarkdownParagraph(paragraphBlock);
protected virtual FillFlowContainer CreateNotice(YamlFrontMatterBlock yamlFrontMatterBlock) => new WikiNoticeContainer(yamlFrontMatterBlock);
private class WikiMarkdownTextFlowContainer : OsuMarkdownTextFlowContainer
{
protected override void AddImage(LinkInline linkInline) => AddDrawable(new WikiMarkdownImage(linkInline));