From b545f686714b26e117a071c73519c0906896c56e Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 2 Feb 2024 20:47:44 +0000 Subject: Remove alloc overload --- .../shedlang/compiler/shidtopatio/ShidToPatioGc.java | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/org/shedlang/compiler/shidtopatio/ShidToPatioGc.java b/src/main/java/org/shedlang/compiler/shidtopatio/ShidToPatioGc.java index e2c9242a..0deafa80 100644 --- a/src/main/java/org/shedlang/compiler/shidtopatio/ShidToPatioGc.java +++ b/src/main/java/org/shedlang/compiler/shidtopatio/ShidToPatioGc.java @@ -144,24 +144,10 @@ public class ShidToPatioGc { Source source, ShidToPatioContext context ) { - return alloc( - destination, - runtimeType.layout(), - runtimeType.gcChildrenOffset(), - runtimeType.gcChildrenCount(), - source, - context - ); - } + var layout = runtimeType.layout(); + var childrenOffset = runtimeType.gcChildrenOffset(); + var childrenCount = runtimeType.gcChildrenCount(); - public static ShidToPatioContext alloc( - PatioLocalRef destination, - PatioDataLayout layout, - List childrenOffset, - int childrenCount, - Source source, - ShidToPatioContext context - ) { context = context.ensureCompilationUnitElement(ALLOC); var size = new PatioIntConst(new PatioIntValueByteSizeOf(layout)); -- cgit v1.2.3