mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Remove leftover code
This commit is contained in:
parent
a7cf2be64f
commit
16e97bda8c
3 changed files with 4 additions and 19 deletions
|
@ -7,24 +7,14 @@ namespace LibHac.IO.RomFs
|
|||
{
|
||||
public class HierarchicalRomFileTable
|
||||
{
|
||||
private IStorage DirHashTableStorage { get; }
|
||||
private IStorage DirEntryTableStorage { get; }
|
||||
private IStorage FileHashTableStorage { get; }
|
||||
private IStorage FileEntryTableStorage { get; }
|
||||
|
||||
private RomFsDictionary<FileRomEntry> FileTable { get; }
|
||||
private RomFsDictionary<DirectoryRomEntry> DirectoryTable { get; }
|
||||
|
||||
public HierarchicalRomFileTable(IStorage dirHashTable, IStorage dirEntryTable, IStorage fileHashTable,
|
||||
IStorage fileEntryTable)
|
||||
{
|
||||
DirHashTableStorage = dirHashTable;
|
||||
DirEntryTableStorage = dirEntryTable;
|
||||
FileHashTableStorage = fileHashTable;
|
||||
FileEntryTableStorage = fileEntryTable;
|
||||
|
||||
FileTable = new RomFsDictionary<FileRomEntry>(FileHashTableStorage, FileEntryTableStorage);
|
||||
DirectoryTable = new RomFsDictionary<DirectoryRomEntry>(DirHashTableStorage, DirEntryTableStorage);
|
||||
FileTable = new RomFsDictionary<FileRomEntry>(fileHashTable, fileEntryTable);
|
||||
DirectoryTable = new RomFsDictionary<DirectoryRomEntry>(dirHashTable, dirEntryTable);
|
||||
}
|
||||
|
||||
public HierarchicalRomFileTable() : this(0, 0) { }
|
||||
|
|
|
@ -11,8 +11,8 @@ namespace LibHac.IO.RomFs
|
|||
private const int HeaderSize = 0x50;
|
||||
private const int HeaderWithPaddingSize = 0x200;
|
||||
|
||||
public List<IStorage> Sources { get; } = new List<IStorage>();
|
||||
public HierarchicalRomFileTable FileTable { get; } = new HierarchicalRomFileTable();
|
||||
private List<IStorage> Sources { get; } = new List<IStorage>();
|
||||
private HierarchicalRomFileTable FileTable { get; } = new HierarchicalRomFileTable();
|
||||
private long CurrentOffset { get; set; }
|
||||
|
||||
public RomFsBuilder() { }
|
||||
|
|
|
@ -247,11 +247,6 @@ namespace LibHac.IO.RomFs
|
|||
SetCapacity(_length);
|
||||
}
|
||||
|
||||
private ref RomFsEntry GetEntryReference(int offset)
|
||||
{
|
||||
return ref MemoryMarshal.Cast<byte, RomFsEntry>(Entries.AsSpan(offset))[0];
|
||||
}
|
||||
|
||||
private ref RomFsEntry GetEntryReference(int offset, out Span<byte> name)
|
||||
{
|
||||
ref RomFsEntry entry = ref MemoryMarshal.Cast<byte, RomFsEntry>(Entries.AsSpan(offset))[0];
|
||||
|
|
Loading…
Reference in a new issue