summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/CodeGenUtils.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-06-30 09:41:21 +0200
committerSven Gothel <[email protected]>2023-06-30 09:41:21 +0200
commitb35d62425311ec50e6c80b07372bc411aa287bb4 (patch)
treed5904a514bbb38d977f73d86c848c7e112b89099 /src/java/com/jogamp/gluegen/CodeGenUtils.java
parentad79dae90b94d0875416278e9dcedfc08a1de578 (diff)
GlueGen FunctionType/MethodBinding: get*ParameterList(): Use a more flexible way via a ParameterConsumer visitor, also usable for other iterative parameter generator
Diffstat (limited to 'src/java/com/jogamp/gluegen/CodeGenUtils.java')
-rw-r--r--src/java/com/jogamp/gluegen/CodeGenUtils.java11
1 files changed, 1 insertions, 10 deletions
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").