diff --git a/.editorconfig b/.editorconfig index aefd0543fc..72e278d7a8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -992,6 +992,9 @@ dotnet_diagnostic.RCS1071.severity = warning # Remove empty namespace declaration. dotnet_diagnostic.RCS1072.severity = warning +# Remove redundant constructor. +dotnet_diagnostic.RCS1074.severity = warning + # Remove empty region. dotnet_diagnostic.RCS1091.severity = warning diff --git a/OpenRA.Mods.Common/Traits/AcceptsDeliveredExperience.cs b/OpenRA.Mods.Common/Traits/AcceptsDeliveredExperience.cs index 366978946e..2b159180fa 100644 --- a/OpenRA.Mods.Common/Traits/AcceptsDeliveredExperience.cs +++ b/OpenRA.Mods.Common/Traits/AcceptsDeliveredExperience.cs @@ -26,8 +26,5 @@ namespace OpenRA.Mods.Common.Traits public override object Create(ActorInitializer init) { return new AcceptsDeliveredExperience(); } } - public class AcceptsDeliveredExperience - { - public AcceptsDeliveredExperience() { } - } + public class AcceptsDeliveredExperience { } } diff --git a/OpenRA.Platforms.Default/DummySoundEngine.cs b/OpenRA.Platforms.Default/DummySoundEngine.cs index f3a9d0cb40..33fda4823c 100644 --- a/OpenRA.Platforms.Default/DummySoundEngine.cs +++ b/OpenRA.Platforms.Default/DummySoundEngine.cs @@ -27,8 +27,6 @@ namespace OpenRA.Platforms.Default return defaultDevices; } - public DummySoundEngine() { } - public ISoundSource AddSoundSourceFromMemory(byte[] data, int channels, int sampleBits, int sampleRate) { return new NullSoundSource();