From 04e9109f112f4cb7317416c2e31806f42663cb45 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Mon, 15 Apr 2024 15:19:54 -0600 Subject: Allow MethodInstance to keep track of parent class --- st/TypeInstance.java | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'st/TypeInstance.java') diff --git a/st/TypeInstance.java b/st/TypeInstance.java index 65311a8..88b73f3 100644 --- a/st/TypeInstance.java +++ b/st/TypeInstance.java @@ -2,25 +2,15 @@ package st; public class TypeInstance extends AbstractInstance { - ClassInstance cls; - public TypeInstance(String name, TypeEnum type) { super(name, type); } - public void addClassInstance(ClassInstance cls) { - this.cls = cls; - } - public int getSize() { return (this.cls != null) ? cls.getSize() : 4; } - public ClassInstance getClassInstance() { - return this.cls; - } - public boolean sameType(TypeInstance other) { /** * Given a TypeInstance object other, -- cgit v1.2.3