mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-22 06:45:11 +00:00
Remove need for GetMachineForItem
This commit is contained in:
@@ -277,12 +277,6 @@ namespace SabreTools.Metadata.DatFiles
|
||||
public IDictionary<long, Machine> GetMachinesDB()
|
||||
=> ItemsDB.GetMachines();
|
||||
|
||||
/// <summary>
|
||||
/// Get the index and machine associated with an item index
|
||||
/// </summary>
|
||||
public KeyValuePair<long, Machine?> GetMachineForItemDB(long itemIndex)
|
||||
=> ItemsDB.GetMachineForItem(itemIndex);
|
||||
|
||||
/// <summary>
|
||||
/// Get the index and source associated with a source index
|
||||
/// </summary>
|
||||
@@ -1215,8 +1209,8 @@ namespace SabreTools.Metadata.DatFiles
|
||||
}
|
||||
|
||||
// If machine names don't match
|
||||
string? xMachineName = ItemsDB.GetMachineForItem(x.Key).Value?.Name;
|
||||
string? yMachineName = ItemsDB.GetMachineForItem(y.Key).Value?.Name;
|
||||
string? xMachineName = ItemsDB.GetMachine(x.Value.MachineIndex).Value?.Name;
|
||||
string? yMachineName = ItemsDB.GetMachine(y.Value.MachineIndex).Value?.Name;
|
||||
if (xMachineName != yMachineName)
|
||||
return nc.Compare(xMachineName, yMachineName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user