Rename overly long method

This commit is contained in:
Robin Avery
2021-06-06 13:28:17 -04:00
parent 888882ac63
commit 6a456e53f4

View File

@ -331,7 +331,7 @@ namespace osu.Game.Skinning.Editor
{ {
var drawable = (Drawable)item; var drawable = (Drawable)item;
var anchor = getAnchorFromHashAndDrawableAndRecordWhetherUsingClosestAnchor(hash, drawable); var anchor = mapHashToAnchorSettings(hash, drawable);
updateDrawableAnchor(drawable, anchor); updateDrawableAnchor(drawable, anchor);
} }
@ -344,7 +344,7 @@ namespace osu.Game.Skinning.Editor
drawable.Position -= drawable.AnchorPosition - previousAnchor; drawable.Position -= drawable.AnchorPosition - previousAnchor;
} }
private Anchor getAnchorFromHashAndDrawableAndRecordWhetherUsingClosestAnchor(int hash, Drawable drawable) private Anchor mapHashToAnchorSettings(int hash, Drawable drawable)
{ {
var isUsingClosestAnchor = drawable.UsingClosestAnchor(); var isUsingClosestAnchor = drawable.UsingClosestAnchor();