Delete unnecessary class attributes

This commit is contained in:
Adonais Romero González
2016-10-13 22:54:02 -05:00
parent 9ccff6ec48
commit edbbe8daef
4 changed files with 35 additions and 31 deletions

View File

@ -25,8 +25,6 @@ namespace osu.Game.Graphics.UserInterface
/// </remarks>
protected virtual Type transformType => typeof(Transform<T>);
protected double rollingTotalDuration = 0;
protected SpriteText countSpriteText;
/// <summary>
@ -84,10 +82,6 @@ namespace osu.Game.Graphics.UserInterface
count = value;
if (IsLoaded)
{
rollingTotalDuration =
IsRollingProportional
? getProportionalDuration(visibleCount, value)
: RollingDuration;
transformCount(visibleCount, count);
}
}
@ -236,6 +230,11 @@ namespace osu.Game.Graphics.UserInterface
return;
}
double rollingTotalDuration =
IsRollingProportional
? getProportionalDuration(currentValue, newValue)
: RollingDuration;
transform.StartTime = Time;
transform.EndTime = Time + rollingTotalDuration;
transform.StartValue = currentValue;