Small code cleanup

This commit is contained in:
Alex Barney 2019-04-23 15:06:48 -05:00
parent c383b94632
commit 0441d6e825
2 changed files with 2 additions and 3 deletions

View file

@ -169,9 +169,6 @@ namespace LibHac.IO.Save
ReadEntry(EntryIndexToBlock(currentEntryIndex), out next, out int _, out int segmentLength);
int start = EntryIndexToBlock(currentEntryIndex);
int end = start + segmentLength - 1;
next = BlockToEntryIndex(next);
if (segmentLength == blocksRemaining)
@ -369,6 +366,7 @@ namespace LibHac.IO.Save
BaseStorage.Write(bytes, offset);
}
// ReSharper disable once UnusedMember.Local
private int GetListHead(int entryIndex)
{
int headIndex = entryIndex;

View file

@ -242,6 +242,7 @@ namespace LibHac.IO.Save
return MemoryMarshal.Read<int>(buf);
}
// ReSharper disable once UnusedMember.Local
private void SetListCapacity(int capacity)
{
Span<byte> buf = stackalloc byte[sizeof(int)];