1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 08:52:55 +08:00

Remove unnecessary new event

This commit is contained in:
Dean Herbert 2017-12-30 14:46:44 +09:00
parent 0a2e41884e
commit a0966305d4
2 changed files with 1 additions and 17 deletions

View File

@ -42,19 +42,11 @@ namespace osu.Game.Rulesets.Osu.Mods
{
foreach (var d in drawables.OfType<DrawableOsuHitObject>())
{
d.ApplyCustomValues += ApplyHiddenValues;
d.ApplyCustomUpdateState += ApplyHiddenState;
d.FadeInDuration = preEmpt * fade_in_duration_multiplier;
}
}
protected void ApplyHiddenValues(DrawableHitObject drawable)
{
if (!(drawable is DrawableOsuHitObject d))
return;
d.FadeInDuration = preEmpt * fade_in_duration_multiplier;
}
protected void ApplyHiddenState(DrawableHitObject drawable, ArmedState state)
{
if (!(drawable is DrawableOsuHitObject d))

View File

@ -120,9 +120,6 @@ namespace osu.Game.Rulesets.Objects.Drawables
State.ValueChanged += state =>
{
// apply any custom values
ApplyCustomValues?.Invoke(this);
UpdateState(state);
// apply any custom state overrides
@ -253,11 +250,6 @@ namespace osu.Game.Rulesets.Objects.Drawables
nestedHitObjects.Add(h);
}
/// <summary>
/// Bind to apply custom values.
/// </summary>
public event Action<DrawableHitObject> ApplyCustomValues;
/// <summary>
/// Bind to apply a custom state which can override the default implementation.
/// </summary>