1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-06 04:53:06 +08:00

Remove remnants of user skin PR

This commit is contained in:
Dean Herbert 2019-08-30 11:54:36 +09:00
parent 40c1c6072e
commit bfbec067b1

View File

@ -60,9 +60,6 @@ namespace osu.Game.Skinning
}; };
} }
private Skin createIfNotExisting(SkinInfo skinInfo) =>
GetSkin(Query(s => s.Name == skinInfo.Name) ?? Import(skinInfo).Result);
protected override bool ShouldDeleteArchive(string path) => Path.GetExtension(path)?.ToLowerInvariant() == ".osk"; protected override bool ShouldDeleteArchive(string path) => Path.GetExtension(path)?.ToLowerInvariant() == ".osk";
/// <summary> /// <summary>
@ -110,9 +107,6 @@ namespace osu.Game.Skinning
/// <returns>A <see cref="Skin"/> instance correlating to the provided <see cref="SkinInfo"/>.</returns> /// <returns>A <see cref="Skin"/> instance correlating to the provided <see cref="SkinInfo"/>.</returns>
public Skin GetSkin(SkinInfo skinInfo) public Skin GetSkin(SkinInfo skinInfo)
{ {
if (skinInfo == null)
return null;
if (skinInfo == SkinInfo.Default) if (skinInfo == SkinInfo.Default)
return new DefaultSkin(); return new DefaultSkin();