mirror of https://github.com/ppy/osu
Remove hacky code with explicit pragma disable
This commit is contained in:
parent
78ed77805f
commit
af6ae1cce5
|
@ -79,8 +79,10 @@ private class TestDrawableRuleset : DrawableRuleset
|
|||
public List<HitObject> HitObjects;
|
||||
public override IEnumerable<HitObject> Objects => HitObjects;
|
||||
|
||||
#pragma warning disable 67
|
||||
public override event Action<JudgementResult> NewResult;
|
||||
public override event Action<JudgementResult> RevertResult;
|
||||
#pragma warning restore 67
|
||||
|
||||
public override Playfield Playfield { get; }
|
||||
public override Container Overlays { get; }
|
||||
|
@ -95,9 +97,6 @@ private class TestDrawableRuleset : DrawableRuleset
|
|||
public TestDrawableRuleset()
|
||||
: base(new OsuRuleset())
|
||||
{
|
||||
// won't compile without this.
|
||||
NewResult?.Invoke(null);
|
||||
RevertResult?.Invoke(null);
|
||||
}
|
||||
|
||||
public override void SetReplayScore(Score replayScore) => throw new NotImplementedException();
|
||||
|
|
|
@ -235,8 +235,10 @@ private class TestDrawableRuleset : DrawableRuleset
|
|||
|
||||
public override IEnumerable<HitObject> Objects => new[] { new HitCircle { HitWindows = HitWindows } };
|
||||
|
||||
#pragma warning disable 67
|
||||
public override event Action<JudgementResult> NewResult;
|
||||
public override event Action<JudgementResult> RevertResult;
|
||||
#pragma warning restore 67
|
||||
|
||||
public override Playfield Playfield { get; }
|
||||
public override Container Overlays { get; }
|
||||
|
@ -251,9 +253,6 @@ private class TestDrawableRuleset : DrawableRuleset
|
|||
public TestDrawableRuleset()
|
||||
: base(new OsuRuleset())
|
||||
{
|
||||
// won't compile without this.
|
||||
NewResult?.Invoke(null);
|
||||
RevertResult?.Invoke(null);
|
||||
}
|
||||
|
||||
public override void SetReplayScore(Score replayScore) => throw new NotImplementedException();
|
||||
|
|
Loading…
Reference in New Issue