Remove unused parameters and variables.

This commit is contained in:
Matthias Mailänder
2021-12-05 13:27:29 +01:00
committed by abcdefg30
parent 07815143f1
commit 9d905d8291
31 changed files with 54 additions and 59 deletions

View File

@@ -20,7 +20,7 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Relationship the watching player needs to see the generated shroud.")]
public readonly PlayerRelationship ValidRelationships = PlayerRelationship.Neutral | PlayerRelationship.Enemy;
public override object Create(ActorInitializer init) { return new CreatesShroud(init.Self, this); }
public override object Create(ActorInitializer init) { return new CreatesShroud(this); }
}
public class CreatesShroud : AffectsShroud
@@ -28,8 +28,8 @@ namespace OpenRA.Mods.Common.Traits
readonly CreatesShroudInfo info;
IEnumerable<int> rangeModifiers;
public CreatesShroud(Actor self, CreatesShroudInfo info)
: base(self, info)
public CreatesShroud(CreatesShroudInfo info)
: base(info)
{
this.info = info;
}