From 7c6c79a437a4c1e7cf85964d005a3cdeb59809f1 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Fri, 26 Apr 2024 17:01:49 -0600 Subject: Added skeleton files in "heat" libary, successor to TypeCheckSimp --- st/TypeInstance.java | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'st/TypeInstance.java') diff --git a/st/TypeInstance.java b/st/TypeInstance.java index e43c5b3..330662c 100644 --- a/st/TypeInstance.java +++ b/st/TypeInstance.java @@ -26,25 +26,6 @@ public class TypeInstance extends AbstractInstance { cls.getSize() : 4; } - public boolean sameType(TypeInstance other) { - /** - * Given a TypeInstance object other, - * returns true if other object - * is the same type as this one. - * - * We can say two types are equal, as - * long as they are not equal on a - * type error! - */ - - return this.type != TypeEnum.ERROR && - this.type == other.getType(); - } - - public boolean hasChecked() { - return type != TypeEnum.ERROR; - } - public void addClassInstance(ClassInstance cls) { this.cls = cls; } -- cgit v1.2.3