Skip to content

Commit

Permalink
Get rid of the Tag.firstchild
Browse files Browse the repository at this point in the history
  • Loading branch information
RA-Kooi committed Oct 11, 2022
1 parent 58db5d9 commit fe0dad2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
6 changes: 0 additions & 6 deletions DwarfOne2C/Parsing/DumpParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,6 @@ private void Parse(string[] lines, int current)
}

IDToIndex.Add(ID, allTags.Count - 1);

// If prev->sibling != ID
int prevSibling = allTags[allTags.Count - 2].sibling;

if(prevSibling != ID && prevSibling != sibling)
allTags[allTags.Count - 2].firstChild = ID;
}

if(lines[current].EndsWith("<4>"))
Expand Down
7 changes: 0 additions & 7 deletions DwarfOne2C/Tags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ public class Tag
public int ID;
public int sibling;

// Used for Tags with child tags
// CompilationUnit
// Class
// Struct
// Union
public int firstChild = -1;

// Empty tag ID
public static readonly int NoSibling = -1;

Expand Down

0 comments on commit fe0dad2

Please sign in to comment.