Remove unnecessary RemapDatItemToMachine method

This commit is contained in:
Matt Nadareski
2026-04-16 13:00:13 -04:00
parent 096f9d4b96
commit b8966f5e37
4 changed files with 6 additions and 46 deletions

View File

@@ -508,35 +508,6 @@ namespace SabreTools.Metadata.DatFiles.Test
#endregion
#region RemapDatItemToMachine
[Fact]
public void RemapDatItemToMachineTest()
{
Source source = new Source(0, source: null);
Machine origMachine = new Machine { Name = "original" };
Machine newMachine = new Machine { Name = "new" };
DatItem datItem = new Rom();
var dict = new ItemDatabase();
long sourceIndex = dict.AddSource(source);
long origMachineIndex = dict.AddMachine(origMachine);
long newMachineIndex = dict.AddMachine(newMachine);
long itemIndex = dict.AddItem(datItem, origMachineIndex, sourceIndex, statsOnly: false);
dict.RemapDatItemToMachine(itemIndex, newMachineIndex);
var actual = dict.GetMachineForItem(itemIndex);
Assert.Equal(1, actual.Key);
Assert.NotNull(actual.Value);
Assert.Equal("new", actual.Value.Name);
}
#endregion
#region RemoveBucket
[Fact]