Remove unused parameters and variables.
This commit is contained in:
committed by
abcdefg30
parent
07815143f1
commit
9d905d8291
@@ -23,7 +23,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Can this actor reveal shroud generated by the `" + nameof(CreatesShroud) + "` trait?")]
|
||||
public readonly bool RevealGeneratedShroud = true;
|
||||
|
||||
public override object Create(ActorInitializer init) { return new RevealsShroud(init.Self, this); }
|
||||
public override object Create(ActorInitializer init) { return new RevealsShroud(this); }
|
||||
}
|
||||
|
||||
public class RevealsShroud : AffectsShroud
|
||||
@@ -32,8 +32,8 @@ namespace OpenRA.Mods.Common.Traits
|
||||
readonly Shroud.SourceType type;
|
||||
IEnumerable<int> rangeModifiers;
|
||||
|
||||
public RevealsShroud(Actor self, RevealsShroudInfo info)
|
||||
: base(self, info)
|
||||
public RevealsShroud(RevealsShroudInfo info)
|
||||
: base(info)
|
||||
{
|
||||
this.info = info;
|
||||
type = info.RevealGeneratedShroud ? Shroud.SourceType.Visibility
|
||||
|
||||
Reference in New Issue
Block a user