Update existing function type rather than adding an override

This commit is contained in:
Dean Herbert
2021-06-02 16:04:53 +09:00
parent 7c6400735f
commit f8ae70e562
34 changed files with 117 additions and 129 deletions

View File

@ -52,9 +52,7 @@ namespace osu.Game.Tests.Visual
private readonly List<Drawable> createdDrawables = new List<Drawable>();
public void SetContents(Func<Drawable> creationFunction) => SetContents(_ => creationFunction?.Invoke());
public void SetContents(Func<ISkin, Drawable> creationFunction)
protected void SetContents(Func<ISkin, Drawable> creationFunction)
{
createdDrawables.Clear();