Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2019-05-09 01:40:19 -0400
committerAlexander Kurtakov2019-05-09 01:40:19 -0400
commit27d38ab20e1dde2f865dc1d5f597c41ccdf3ccda (patch)
tree895f357fc5f69d52f3b46861edf42bd67f66c36e
parentb8f2d68171e7cdad8150b9fa411bb2e391f9cf97 (diff)
downloadeclipse.platform.swt-27d38ab20e1dde2f865dc1d5f597c41ccdf3ccda.tar.gz
eclipse.platform.swt-27d38ab20e1dde2f865dc1d5f597c41ccdf3ccda.tar.xz
eclipse.platform.swt-27d38ab20e1dde2f865dc1d5f597c41ccdf3ccda.zip
Remove unused parameters in NativesGenerator.
Change-Id: I04b625e3f709d81543d207f0f421dfa786567eb3 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java
index 5e67b4285b..de2904560d 100644
--- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java
+++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java
@@ -262,7 +262,7 @@ void generateNativeMacro(JNIClass clazz) {
outputln();
}
-boolean generateGetParameter(JNIMethod method, JNIParameter param, boolean critical, int indent) {
+boolean generateGetParameter(JNIParameter param, boolean critical, int indent) {
JNIType paramType = param.getType(), paramType64 = param.getType64();
if (paramType.isPrimitive() || isSystemClass(paramType)) return false;
String iStr = String.valueOf(param.getParameter());
@@ -505,13 +505,13 @@ boolean generateLocalVars(JNIParameter[] params, JNIType returnType, JNIType ret
return needsReturn;
}
-boolean generateGetters(JNIMethod method, JNIParameter[] params) {
+boolean generateGetters(JNIParameter[] params) {
boolean genFailTag = false;
int criticalCount = 0;
for (int i = 0; i < params.length; i++) {
JNIParameter param = params[i];
if (!isCritical(param)) {
- genFailTag |= generateGetParameter(method, param, false, 1);
+ genFailTag |= generateGetParameter(param, false, 1);
} else {
criticalCount++;
}
@@ -520,7 +520,7 @@ boolean generateGetters(JNIMethod method, JNIParameter[] params) {
for (int i = 0; i < params.length; i++) {
JNIParameter param = params[i];
if (isCritical(param)) {
- genFailTag |= generateGetParameter(method, param, true, 2);
+ genFailTag |= generateGetParameter(param, true, 2);
}
}
}
@@ -912,7 +912,7 @@ void generateFunctionBody(JNIMethod method, String function, String function64,
} else {
boolean needsReturn = generateLocalVars(params, returnType, returnType64);
generateEnterExitMacro(method, function, function64, true);
- boolean genFailTag = generateGetters(method, params);
+ boolean genFailTag = generateGetters(params);
if (method.getFlag(FLAG_DYNAMIC)) {
generateDynamicFunctionCall(method, params, returnType, returnType64, needsReturn);
} else {

Back to the top