Fix CA1822
This commit is contained in:
@@ -64,7 +64,7 @@ namespace OpenRA.Mods.Common.Lint
|
||||
}
|
||||
}
|
||||
|
||||
void CheckInner(ModData modData, string[] namedKeys, (string Widget, string Field)[] checkWidgetFields, Dictionary<string, List<string>> customLintMethods,
|
||||
static void CheckInner(ModData modData, string[] namedKeys, (string Widget, string Field)[] checkWidgetFields, Dictionary<string, List<string>> customLintMethods,
|
||||
IEnumerable<MiniYamlNode> nodes, string filename, MiniYamlNode parent, Action<string> emitError)
|
||||
{
|
||||
foreach (var node in nodes)
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace OpenRA.Mods.Common.Lint
|
||||
CheckInner(MiniYaml.FromStream(modData.DefaultFileSystem.Open(filename), filename), filename, emitError);
|
||||
}
|
||||
|
||||
void CheckInner(IEnumerable<MiniYamlNode> nodes, string filename, Action<string> emitError)
|
||||
static void CheckInner(IEnumerable<MiniYamlNode> nodes, string filename, Action<string> emitError)
|
||||
{
|
||||
var substitutions = new Dictionary<string, int>();
|
||||
var readOnlySubstitutions = new ReadOnlyDictionary<string, int>(substitutions);
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace OpenRA.Mods.Common.Lint
|
||||
CheckInner(MiniYaml.FromStream(modData.DefaultFileSystem.Open(filename), filename), filename, emitError);
|
||||
}
|
||||
|
||||
void CheckInner(IEnumerable<MiniYamlNode> nodes, string filename, Action<string> emitError)
|
||||
static void CheckInner(IEnumerable<MiniYamlNode> nodes, string filename, Action<string> emitError)
|
||||
{
|
||||
foreach (var node in nodes)
|
||||
{
|
||||
|
||||
@@ -371,7 +371,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
neighbours[d].neighbours[d].UpdateState();
|
||||
}
|
||||
|
||||
void AggregateDamageState(Bridge b, int d, ref DamageState damage)
|
||||
static void AggregateDamageState(Bridge b, int d, ref DamageState damage)
|
||||
{
|
||||
if (b.health.DamageState > damage)
|
||||
damage = b.health.DamageState;
|
||||
|
||||
Reference in New Issue
Block a user