From 75d1e4cc7606468002a3af7ec6ece16dc34e663b Mon Sep 17 00:00:00 2001 From: mcendu Date: Thu, 26 Dec 2019 22:06:29 +0800 Subject: [PATCH] rm TestLegacySkin --- .../SkinnableTestScene.cs | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/osu.Game.Rulesets.Mania.Tests/SkinnableTestScene.cs b/osu.Game.Rulesets.Mania.Tests/SkinnableTestScene.cs index 3822c8ce86..1c8a9c4ca6 100644 --- a/osu.Game.Rulesets.Mania.Tests/SkinnableTestScene.cs +++ b/osu.Game.Rulesets.Mania.Tests/SkinnableTestScene.cs @@ -45,30 +45,5 @@ namespace osu.Game.Rulesets.Mania.Tests Child = creationFunction() }); } - - private class TestLegacySkin : LegacySkin - { - private readonly bool extrapolateAnimations; - - public TestLegacySkin(SkinInfo skin, IResourceStore storage, AudioManager audioManager, bool extrapolateAnimations) - : base(skin, storage, audioManager, "skin.ini") - { - this.extrapolateAnimations = extrapolateAnimations; - } - - public override Texture GetTexture(string componentName) - { - // extrapolate frames to test longer animations - if (extrapolateAnimations) - { - var match = Regex.Match(componentName, "-([0-9]*)"); - - if (match.Length > 0 && int.TryParse(match.Groups[1].Value, out var number) && number < 60) - return base.GetTexture(componentName.Replace($"-{number}", $"-{number % 2}")); - } - - return base.GetTexture(componentName); - } - } } }