Remove unread private member (IDE0052)

This commit is contained in:
Matthias Mailänder
2022-09-10 19:45:39 +02:00
committed by Gustas
parent 43e0cca663
commit d3a8b07f05
14 changed files with 10 additions and 33 deletions

View File

@@ -49,15 +49,11 @@ namespace OpenRA.Mods.Common.Traits.Render
public class WithVoxelTurret : ConditionalTrait<WithVoxelTurretInfo>
{
readonly Actor self;
readonly Turreted turreted;
readonly BodyOrientation body;
public WithVoxelTurret(Actor self, WithVoxelTurretInfo info)
: base(info)
{
this.self = self;
body = self.Trait<BodyOrientation>();
turreted = self.TraitsImplementing<Turreted>()
.First(tt => tt.Name == Info.Turret);