From 9dad27fef462d20adec671efe6d1e795966f5300 Mon Sep 17 00:00:00 2001 From: j-james Date: Mon, 17 Oct 2022 06:58:12 -0700 Subject: Remove unused classes, for now --- src/main/model/html/HtmlTree.java | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 src/main/model/html/HtmlTree.java (limited to 'src/main/model/html/HtmlTree.java') diff --git a/src/main/model/html/HtmlTree.java b/src/main/model/html/HtmlTree.java deleted file mode 100644 index 1aae0a8..0000000 --- a/src/main/model/html/HtmlTree.java +++ /dev/null @@ -1,33 +0,0 @@ -package model.html; - -import model.util.AbstractTree; -import org.javatuples.Pair; - -import java.util.ArrayList; -import java.util.Optional; - -/** - * Representation of HTML as a tree of nodes. Sorry about the generics. - */ -public class HtmlTree extends AbstractTree>>> { - private String tag; - private ArrayList> attributes; - private Optional parent = Optional.empty(); - private Optional sibling = Optional.empty(); - - // I don't quite know why I can't say ArrayList children. - public HtmlTree(String tag, ArrayList> attributes, - ArrayList>>>> children, - Optional parent, Optional sibling) { - super(new Pair<>(tag, attributes), children); - this.tag = tag; - this.attributes = attributes; - this.parent = parent; - this.sibling = sibling; - } - - public HtmlTree(String tag, ArrayList> attributes) { - this(tag, attributes, new ArrayList>>>>(), - Optional.empty(), Optional.empty()); - } -} -- cgit v1.2.3-70-g09d2