mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Small code cleanup
This commit is contained in:
parent
c383b94632
commit
0441d6e825
2 changed files with 2 additions and 3 deletions
|
@ -169,9 +169,6 @@ namespace LibHac.IO.Save
|
||||||
|
|
||||||
ReadEntry(EntryIndexToBlock(currentEntryIndex), out next, out int _, out int segmentLength);
|
ReadEntry(EntryIndexToBlock(currentEntryIndex), out next, out int _, out int segmentLength);
|
||||||
|
|
||||||
int start = EntryIndexToBlock(currentEntryIndex);
|
|
||||||
int end = start + segmentLength - 1;
|
|
||||||
|
|
||||||
next = BlockToEntryIndex(next);
|
next = BlockToEntryIndex(next);
|
||||||
|
|
||||||
if (segmentLength == blocksRemaining)
|
if (segmentLength == blocksRemaining)
|
||||||
|
@ -369,6 +366,7 @@ namespace LibHac.IO.Save
|
||||||
BaseStorage.Write(bytes, offset);
|
BaseStorage.Write(bytes, offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ReSharper disable once UnusedMember.Local
|
||||||
private int GetListHead(int entryIndex)
|
private int GetListHead(int entryIndex)
|
||||||
{
|
{
|
||||||
int headIndex = entryIndex;
|
int headIndex = entryIndex;
|
||||||
|
|
|
@ -242,6 +242,7 @@ namespace LibHac.IO.Save
|
||||||
return MemoryMarshal.Read<int>(buf);
|
return MemoryMarshal.Read<int>(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ReSharper disable once UnusedMember.Local
|
||||||
private void SetListCapacity(int capacity)
|
private void SetListCapacity(int capacity)
|
||||||
{
|
{
|
||||||
Span<byte> buf = stackalloc byte[sizeof(int)];
|
Span<byte> buf = stackalloc byte[sizeof(int)];
|
||||||
|
|
Loading…
Reference in a new issue