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)
|
IEnumerable<MiniYamlNode> nodes, string filename, MiniYamlNode parent, Action<string> emitError)
|
||||||
{
|
{
|
||||||
foreach (var node in nodes)
|
foreach (var node in nodes)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace OpenRA.Mods.Common.Lint
|
|||||||
CheckInner(MiniYaml.FromStream(modData.DefaultFileSystem.Open(filename), filename), filename, emitError);
|
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 substitutions = new Dictionary<string, int>();
|
||||||
var readOnlySubstitutions = new ReadOnlyDictionary<string, int>(substitutions);
|
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);
|
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)
|
foreach (var node in nodes)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -371,7 +371,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
neighbours[d].neighbours[d].UpdateState();
|
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)
|
if (b.health.DamageState > damage)
|
||||||
damage = b.health.DamageState;
|
damage = b.health.DamageState;
|
||||||
|
|||||||
Reference in New Issue
Block a user