Skip to content

Commit

Permalink
Don't do toddler things
Browse files Browse the repository at this point in the history
  • Loading branch information
taubenangriff committed Mar 7, 2024
1 parent ccd19cd commit 084549a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Interpreting/XmlDocumentMarking.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;

namespace FileDBReader.src
{
public class XmlDocumentMarking
{
private List<XmlNode> unmarked;
private HashSet<XmlNode> unmarked;
XmlDocument OriginalDocument;

private XmlDocumentMarking()
Expand Down Expand Up @@ -52,7 +50,7 @@ public static XmlDocumentMarking InitFrom(XmlDocument doc)
{
XmlDocumentMarking marking = new XmlDocumentMarking();
marking.OriginalDocument = doc;
marking.unmarked = doc.SelectNodes("//*[text()]").Cast<XmlNode>().ToList();
marking.unmarked = doc.SelectNodes("//*[text()]").Cast<XmlNode>().ToHashSet();
return marking;
}

Expand Down

0 comments on commit 084549a

Please sign in to comment.