From 3b1571fd410096eb20a9af9ebcee124ff1ea8eac Mon Sep 17 00:00:00 2001 From: bd-912 Date: Wed, 17 Apr 2024 15:38:56 -0600 Subject: Allow CFG to compile by removing generic types --- vaporize/library/Node.java | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 vaporize/library/Node.java (limited to 'vaporize/library/Node.java') diff --git a/vaporize/library/Node.java b/vaporize/library/Node.java deleted file mode 100644 index 203f931..0000000 --- a/vaporize/library/Node.java +++ /dev/null @@ -1,38 +0,0 @@ -package vaporize.library; - -import cs132.vapor.ast.*; -import java.util.ArrayList; - -class Node { - - private VInstr instruction; - private ArrayList sources; - private ArrayList dests; - - protected Node(VInstr instruction) { - this.instruction = instruction; - this.sources = new ArrayList<>(); - this.dests = new ArrayList<>(); - } - - protected void addSource(Node node) { - this.sources.add(node); - } - - protected void addDest(Node node) { - this.dests.add(node); - } - - protected VInstr getInstruction() { - return this.instruction; - } - - protected ArrayList getSources() { - return this.sources; - } - - protected ArrayList getDests() { - return this.dests; - } - -} -- cgit v1.2.3