From b35d62425311ec50e6c80b07372bc411aa287bb4 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 30 Jun 2023 09:41:21 +0200 Subject: GlueGen FunctionType/MethodBinding: get*ParameterList(): Use a more flexible way via a ParameterConsumer visitor, also usable for other iterative parameter generator --- src/java/com/jogamp/gluegen/CodeGenUtils.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/java/com/jogamp/gluegen/CodeGenUtils.java') diff --git a/src/java/com/jogamp/gluegen/CodeGenUtils.java b/src/java/com/jogamp/gluegen/CodeGenUtils.java index aa7a4e2..69a9001 100644 --- a/src/java/com/jogamp/gluegen/CodeGenUtils.java +++ b/src/java/com/jogamp/gluegen/CodeGenUtils.java @@ -1,4 +1,5 @@ /* + * Copyright (c) 2010-2023 JogAmp Community. All rights reserved. * Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without @@ -57,16 +58,6 @@ public class CodeGenUtils { return Character.toLowerCase(string.charAt(0)) + string.substring(1); } - /** Appends `param` to `buf` while prepending a comman separator if `needsComma[0]` is true. Sets `needsComma[0]=true` afterwards. */ - public static StringBuilder addParameterToList(final StringBuilder buf, final String param, final boolean[] needsComma) { - if( needsComma[0] ) { - buf.append(", "); - } - buf.append(param); - needsComma[0] = true; - return buf; - } - /** * Given a java package name (e.g., "java.lang"), return the package as a * directory path (i.e., "java/lang"). -- cgit v1.2.3