Remove hacky code with explicit pragma disable

This commit is contained in:
Salman Ahmed 2021-11-05 03:49:11 +03:00
parent 78ed77805f
commit af6ae1cce5
2 changed files with 4 additions and 6 deletions

View File

@ -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();

View File

@ -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();