diff --git a/osu.Game.Tests/NonVisual/FirstAvailableHitWindowsTest.cs b/osu.Game.Tests/NonVisual/FirstAvailableHitWindowsTest.cs index 97105b6b6a..8d83fe7452 100644 --- a/osu.Game.Tests/NonVisual/FirstAvailableHitWindowsTest.cs +++ b/osu.Game.Tests/NonVisual/FirstAvailableHitWindowsTest.cs @@ -79,8 +79,10 @@ private class TestDrawableRuleset : DrawableRuleset public List HitObjects; public override IEnumerable Objects => HitObjects; +#pragma warning disable 67 public override event Action NewResult; public override event Action 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(); diff --git a/osu.Game.Tests/Visual/Gameplay/TestSceneHitErrorMeter.cs b/osu.Game.Tests/Visual/Gameplay/TestSceneHitErrorMeter.cs index 1ba0965ceb..aa29f1386c 100644 --- a/osu.Game.Tests/Visual/Gameplay/TestSceneHitErrorMeter.cs +++ b/osu.Game.Tests/Visual/Gameplay/TestSceneHitErrorMeter.cs @@ -235,8 +235,10 @@ private class TestDrawableRuleset : DrawableRuleset public override IEnumerable Objects => new[] { new HitCircle { HitWindows = HitWindows } }; +#pragma warning disable 67 public override event Action NewResult; public override event Action 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();