From ff20c1c59d51493b6df044bc8bba3e96dd619c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 5 Dec 2021 13:44:56 +0100 Subject: [PATCH] Avoid unnecessary variable assignment. --- OpenRA.Mods.Common/Traits/SupportPowers/AirstrikePower.cs | 2 -- OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs | 2 -- 2 files changed, 4 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/SupportPowers/AirstrikePower.cs b/OpenRA.Mods.Common/Traits/SupportPowers/AirstrikePower.cs index cca90ca2b2..5dbb0637ae 100644 --- a/OpenRA.Mods.Common/Traits/SupportPowers/AirstrikePower.cs +++ b/OpenRA.Mods.Common/Traits/SupportPowers/AirstrikePower.cs @@ -223,7 +223,6 @@ namespace OpenRA.Mods.Common.Traits camera.QueueActivity(new Wait(info.CameraRemoveDelay)); camera.QueueActivity(new RemoveSelf()); - camera = null; } void RemoveBeacon(Beacon beacon) @@ -234,7 +233,6 @@ namespace OpenRA.Mods.Common.Traits Self.World.AddFrameEndTask(w => { w.Remove(beacon); - beacon = null; }); } } diff --git a/OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs b/OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs index bd4448e574..ce9134be49 100644 --- a/OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs +++ b/OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs @@ -269,7 +269,6 @@ namespace OpenRA.Mods.Common.Traits camera.QueueActivity(new Wait(info.CameraRemoveDelay)); camera.QueueActivity(new RemoveSelf()); - camera = null; } void RemoveBeacon(Beacon beacon) @@ -280,7 +279,6 @@ namespace OpenRA.Mods.Common.Traits Self.World.AddFrameEndTask(w => { w.Remove(beacon); - beacon = null; }); } }