Avoid unnecessary variable assignment.

This commit is contained in:
Matthias Mailänder
2021-12-05 13:44:56 +01:00
committed by abcdefg30
parent 2c5f1f343f
commit ff20c1c59d
2 changed files with 0 additions and 4 deletions

View File

@@ -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;
});
}
}

View File

@@ -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;
});
}
}