Fix RCS1074

This commit is contained in:
RoosterDragon
2023-03-18 12:21:01 +00:00
committed by Gustas
parent 43ebb93ff6
commit 06aa378dfd
3 changed files with 4 additions and 6 deletions

View File

@@ -992,6 +992,9 @@ dotnet_diagnostic.RCS1071.severity = warning
# Remove empty namespace declaration. # Remove empty namespace declaration.
dotnet_diagnostic.RCS1072.severity = warning dotnet_diagnostic.RCS1072.severity = warning
# Remove redundant constructor.
dotnet_diagnostic.RCS1074.severity = warning
# Remove empty region. # Remove empty region.
dotnet_diagnostic.RCS1091.severity = warning dotnet_diagnostic.RCS1091.severity = warning

View File

@@ -26,8 +26,5 @@ namespace OpenRA.Mods.Common.Traits
public override object Create(ActorInitializer init) { return new AcceptsDeliveredExperience(); } public override object Create(ActorInitializer init) { return new AcceptsDeliveredExperience(); }
} }
public class AcceptsDeliveredExperience public class AcceptsDeliveredExperience { }
{
public AcceptsDeliveredExperience() { }
}
} }

View File

@@ -27,8 +27,6 @@ namespace OpenRA.Platforms.Default
return defaultDevices; return defaultDevices;
} }
public DummySoundEngine() { }
public ISoundSource AddSoundSourceFromMemory(byte[] data, int channels, int sampleBits, int sampleRate) public ISoundSource AddSoundSourceFromMemory(byte[] data, int channels, int sampleBits, int sampleRate)
{ {
return new NullSoundSource(); return new NullSoundSource();