Skip to content

Commit 6a31844

Browse files
Mailaenderabcdefg30
authored andcommitted
Remove unused variables.
1 parent 6b6fecb commit 6a31844

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

OpenRA.Mods.RA2/Traits/BaseSpawnerParent.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ public class BaseSpawnerParent : ConditionalTrait<BaseSpawnerParentInfo>, INotif
8585
protected readonly BaseSpawnerChildEntry[] ChildEntries;
8686

8787
IFacing facing;
88-
ExitInfo[] exits;
89-
RallyPoint rallyPoint;
9088

9189
protected IReloadModifier[] reloadModifiers;
9290

@@ -120,8 +118,6 @@ protected override void Created(Actor self)
120118
base.Created(self);
121119

122120
facing = self.TraitOrDefault<IFacing>();
123-
exits = self.Info.TraitInfos<ExitInfo>().ToArray();
124-
rallyPoint = self.TraitOrDefault<RallyPoint>();
125121

126122
reloadModifiers = self.TraitsImplementing<IReloadModifier>().ToArray();
127123
}

OpenRA.Mods.RA2/Traits/CarrierParent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ void INotifyAttack.Attacking(Actor self, Target target, Armament a, Barrel barre
152152

153153
void INotifyBecomingIdle.OnBecomingIdle(Actor self)
154154
{
155-
Recall(self);
155+
Recall();
156156
}
157157

158-
void Recall(Actor self)
158+
void Recall()
159159
{
160160
foreach (var carrierChildEntry in childEntries)
161161
if (carrierChildEntry.IsLaunched && carrierChildEntry.IsValid)

0 commit comments

Comments
 (0)