diff --git a/osu.Game/Skinning/Skin.cs b/osu.Game/Skinning/Skin.cs
index 1fb1e3b99f..64c848fbfa 100644
--- a/osu.Game/Skinning/Skin.cs
+++ b/osu.Game/Skinning/Skin.cs
@@ -61,11 +61,19 @@ namespace osu.Game.Skinning
}
}
+ ///
+ /// Remove all stored customisations for the provided target.
+ ///
+ /// The target container to reset.
public void ResetDrawableTarget(SkinnableElementTargetContainer targetContainer)
{
DrawableComponentInfo.Remove(targetContainer.Target);
}
+ ///
+ /// Update serialised information for the provided target.
+ ///
+ /// The target container to serialise to this skin.
public void UpdateDrawableTarget(SkinnableElementTargetContainer targetContainer)
{
DrawableComponentInfo[targetContainer.Target] = targetContainer.CreateSerialisedChildren().ToArray();
@@ -76,10 +84,7 @@ namespace osu.Game.Skinning
switch (component)
{
case SkinnableTargetComponent target:
-
- var skinnableTarget = target.Target;
-
- if (!DrawableComponentInfo.TryGetValue(skinnableTarget, out var skinnableInfo))
+ if (!DrawableComponentInfo.TryGetValue(target.Target, out var skinnableInfo))
return null;
return new SkinnableTargetWrapper