summaryrefslogtreecommitdiff
path: root/st/TypeInstance.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-04-26 17:01:49 -0600
committerbd-912 <bdunahu@colostate.edu>2024-04-26 17:01:49 -0600
commit7c6c79a437a4c1e7cf85964d005a3cdeb59809f1 (patch)
tree87318f07590b624d4408410e4b2693ad20dff166 /st/TypeInstance.java
parentccd38b0746b0b5aeeefdd6e49f2c9d6cb66676f4 (diff)
Added skeleton files in "heat" libary, successor to TypeCheckSimp
Diffstat (limited to 'st/TypeInstance.java')
-rw-r--r--st/TypeInstance.java19
1 files changed, 0 insertions, 19 deletions
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;
}