Remove unused fields and parameters.

This commit is contained in:
Matthias Mailänder
2021-10-21 17:39:48 +02:00
committed by abcdefg30
parent 3b5bfb4bf4
commit a3ccc81892
10 changed files with 20 additions and 25 deletions

View File

@@ -21,7 +21,7 @@ namespace OpenRA.Mods.Common.Lint
{
public class LintExts
{
public static IEnumerable<string> GetFieldValues(object ruleInfo, FieldInfo fieldInfo, Action<string> emitError,
public static IEnumerable<string> GetFieldValues(object ruleInfo, FieldInfo fieldInfo,
LintDictionaryReference dictionaryReference = LintDictionaryReference.None)
{
var type = fieldInfo.FieldType;
@@ -66,7 +66,7 @@ namespace OpenRA.Mods.Common.Lint
throw new InvalidOperationException($"Bad type for reference on {ruleInfo.GetType().Name}.{fieldInfo.Name}. Supported types: {supportedTypes.JoinWith(", ")}");
}
public static IEnumerable<string> GetPropertyValues(object ruleInfo, PropertyInfo propertyInfo, Action<string> emitError,
public static IEnumerable<string> GetPropertyValues(object ruleInfo, PropertyInfo propertyInfo,
LintDictionaryReference dictionaryReference = LintDictionaryReference.None)
{
var type = propertyInfo.PropertyType;