Skip to content

Commit

Permalink
Fix parents in PE objects
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Sep 19, 2024
1 parent 416833e commit ede482c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 19 deletions.
2 changes: 0 additions & 2 deletions src/LibObjectFile/PE/DataDirectory/PEImportAddressTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ public PEImportAddressTable() : base(false)
FunctionTable = new PEImportFunctionTable();
}

public new PEImportAddressTableDirectory? Parent => (PEImportAddressTableDirectory?)base.Parent;

public List<PEImportFunctionEntry> Entries => FunctionTable.Entries;

public override void UpdateLayout(PEVisitorContext context)
Expand Down
6 changes: 0 additions & 6 deletions src/LibObjectFile/PE/DataDirectory/PEImportDirectoryEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ public PEImportDirectoryEntry(ZeroTerminatedAsciiStringLink importDllNameLink, P
ImportLookupTable = importLookupTable;
}

public new PEImportDirectory? Parent
{
get => (PEImportDirectory?)base.Parent;
set => base.Parent = value;
}

public ZeroTerminatedAsciiStringLink ImportDllNameLink { get; set; }

public PEImportAddressTable ImportAddressTable { get; set; }
Expand Down
6 changes: 0 additions & 6 deletions src/LibObjectFile/PE/DataDirectory/PEImportLookupTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ public PEImportLookupTable() : base(false)
FunctionTable = new PEImportFunctionTable();
}

public new PEImportDirectoryEntry? Parent
{
get => (PEImportDirectoryEntry?)base.Parent;
set => base.Parent = value;
}

public List<PEImportFunctionEntry> Entries => FunctionTable.Entries;

public override void UpdateLayout(PEVisitorContext context)
Expand Down
5 changes: 0 additions & 5 deletions src/LibObjectFile/PE/PESection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ public PESection(PESectionName name, RVA virtualAddress, RVA virtualSize) : base
Characteristics = SectionCharacteristics.MemRead;
}

/// <summary>
/// Gets the parent <see cref="PEFile"/> of this section.
/// </summary>
public new PEFile? Parent => (PEFile?)base.Parent;

/// <summary>
/// Gets the name of this section.
/// </summary>
Expand Down

0 comments on commit ede482c

Please sign in to comment.