Remove unused parameters.
This commit is contained in:
committed by
abcdefg30
parent
ea243b8558
commit
0e7ad43425
@@ -120,7 +120,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
|
||||
// Run all rule checks on the map if it defines custom rules.
|
||||
if (map.RuleDefinitions != null || map.VoiceDefinitions != null || map.WeaponDefinitions != null)
|
||||
CheckRules(modData, map.Rules, map);
|
||||
CheckRules(modData, map.Rules);
|
||||
|
||||
// Run all map-level checks here.
|
||||
foreach (var customMapPassType in modData.ObjectCreator.GetTypesImplementing<ILintMapPass>())
|
||||
@@ -137,7 +137,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
}
|
||||
}
|
||||
|
||||
void CheckRules(ModData modData, Ruleset rules, Map map = null)
|
||||
void CheckRules(ModData modData, Ruleset rules)
|
||||
{
|
||||
foreach (var customRulesPassType in modData.ObjectCreator.GetTypesImplementing<ILintRulesPass>())
|
||||
{
|
||||
|
||||
@@ -224,9 +224,9 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
|
||||
public virtual void ReadActors(IniFile file)
|
||||
{
|
||||
LoadActors(file, "STRUCTURES", Players, MapSize, Map);
|
||||
LoadActors(file, "UNITS", Players, MapSize, Map);
|
||||
LoadActors(file, "INFANTRY", Players, MapSize, Map);
|
||||
LoadActors(file, "STRUCTURES", Players, Map);
|
||||
LoadActors(file, "UNITS", Players, Map);
|
||||
LoadActors(file, "INFANTRY", Players, Map);
|
||||
}
|
||||
|
||||
public abstract void LoadPlayer(IniFile file, string section);
|
||||
@@ -383,7 +383,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
return new CPos(loc % MapSize, loc / MapSize);
|
||||
}
|
||||
|
||||
public void LoadActors(IniFile file, string section, List<string> players, int mapSize, Map map)
|
||||
public void LoadActors(IniFile file, string section, List<string> players, Map map)
|
||||
{
|
||||
foreach (var s in file.GetSection(section, true))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user