[chore:] big code-cleanup session
This commit is contained in:
@@ -208,7 +208,6 @@ public class KasPerson
|
||||
|
||||
public static int GenerateNewID(int base_id)
|
||||
{
|
||||
//var newid = 100000 + base_id;
|
||||
int highest = 0;
|
||||
foreach (var set in Settings._instance.addressSets.addresses)
|
||||
{
|
||||
@@ -217,8 +216,6 @@ public class KasPerson
|
||||
if(add.id >= highest) highest = add.id+1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return highest + base_id + 1;
|
||||
}
|
||||
|
||||
@@ -228,10 +225,8 @@ public class KasPerson
|
||||
{
|
||||
return refsid + " - " + name;
|
||||
}
|
||||
else
|
||||
{
|
||||
return id + " - " + name;
|
||||
}
|
||||
|
||||
return id + " - " + name;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -239,12 +234,10 @@ public class KasPersonError
|
||||
{
|
||||
public KasPersonError((List<AddressCheck.ErrorTypes>, List<AddressCheck.WarningTypes>) single_result)
|
||||
{
|
||||
//refsid = single_result.Item1;
|
||||
errors = single_result.Item1;
|
||||
warnings = single_result.Item2;
|
||||
}
|
||||
|
||||
//public int refsid { get; set; }
|
||||
public List<AddressCheck.ErrorTypes> errors { get; set; } = new();
|
||||
public List<AddressCheck.WarningTypes> warnings { get; set; } = new();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user