diff options
author | Grant Gayed <grant_gayed@ca.ibm.com> | 2012-01-10 15:46:05 -0500 |
---|---|---|
committer | Grant Gayed <grant_gayed@ca.ibm.com> | 2012-01-10 15:46:05 -0500 |
commit | 38cf508741483045860916e1699178a5facaf55b (patch) | |
tree | 44884a9852106e398ccd2bcf85ae03bf35e86934 /bundles/org.eclipse.swt | |
parent | c9bd1fa15de6e698115cdc36e7f63af25f01eda4 (diff) | |
download | eclipse.platform.swt-38cf508741483045860916e1699178a5facaf55b.tar.gz eclipse.platform.swt-38cf508741483045860916e1699178a5facaf55b.tar.xz eclipse.platform.swt-38cf508741483045860916e1699178a5facaf55b.zip |
remove unused native (JSValueToBoolean)
Diffstat (limited to 'bundles/org.eclipse.swt')
4 files changed, 5 insertions, 38 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk.c b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk.c index 8bc23af9c8..a9dbb96488 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk.c +++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2011 IBM Corporation and others. All rights reserved. + * Copyright (c) 2009, 2012 IBM Corporation and others. All rights reserved. * The contents of this file are made available under the terms * of the GNU Lesser General Public License (LGPL) Version 2.1 that * accompanies this distribution (lgpl-v21.txt). The LGPL is also @@ -502,26 +502,6 @@ JNIEXPORT jintLong JNICALL WebKitGTK_NATIVE(_1JSValueMakeUndefined) } #endif -#ifndef NO__1JSValueToBoolean -JNIEXPORT jint JNICALL WebKitGTK_NATIVE(_1JSValueToBoolean) - (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1) -{ - jint rc = 0; - WebKitGTK_NATIVE_ENTER(env, that, _1JSValueToBoolean_FUNC); -/* - rc = (jint)JSValueToBoolean(arg0, arg1); -*/ - { - WebKitGTK_LOAD_FUNCTION(fp, JSValueToBoolean) - if (fp) { - rc = (jint)((jint (CALLING_CONVENTION*)(jintLong, jintLong))fp)(arg0, arg1); - } - } - WebKitGTK_NATIVE_EXIT(env, that, _1JSValueToBoolean_FUNC); - return rc; -} -#endif - #ifndef NO__1JSValueToNumber JNIEXPORT jdouble JNICALL WebKitGTK_NATIVE(_1JSValueToNumber) (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLongArray arg2) diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.c b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.c index abe3d762a3..fc612e5722 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.c +++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2011 IBM Corporation and others. All rights reserved. + * Copyright (c) 2009, 2012 IBM Corporation and others. All rights reserved. * The contents of this file are made available under the terms * of the GNU Lesser General Public License (LGPL) Version 2.1 that * accompanies this distribution (lgpl-v21.txt). The LGPL is also @@ -18,8 +18,8 @@ #ifdef NATIVE_STATS -int WebKitGTK_nativeFunctionCount = 110; -int WebKitGTK_nativeFunctionCallCount[110]; +int WebKitGTK_nativeFunctionCount = 109; +int WebKitGTK_nativeFunctionCallCount[109]; char * WebKitGTK_nativeFunctionNames[] = { "JSClassDefinition_1sizeof", "_1JSClassCreate", @@ -44,7 +44,6 @@ char * WebKitGTK_nativeFunctionNames[] = { "_1JSValueMakeNumber", "_1JSValueMakeString", "_1JSValueMakeUndefined", - "_1JSValueToBoolean", "_1JSValueToNumber", "_1JSValueToStringCopy", "_1SoupCookie_1expires", diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.h b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.h index 67fafc625e..4ec8c6d2c9 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.h +++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.h @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2011 IBM Corporation and others. All rights reserved. + * Copyright (c) 2009, 2012 IBM Corporation and others. All rights reserved. * The contents of this file are made available under the terms * of the GNU Lesser General Public License (LGPL) Version 2.1 that * accompanies this distribution (lgpl-v21.txt). The LGPL is also @@ -52,7 +52,6 @@ typedef enum { _1JSValueMakeNumber_FUNC, _1JSValueMakeString_FUNC, _1JSValueMakeUndefined_FUNC, - _1JSValueToBoolean_FUNC, _1JSValueToNumber_FUNC, _1JSValueToStringCopy_FUNC, _1SoupCookie_1expires_FUNC, diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java index b18f4e2ac4..f6e83cb6f1 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java +++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java @@ -332,17 +332,6 @@ public static final int /*long*/ JSValueMakeUndefined (int /*long*/ ctx) { } /** @method flags=dynamic */ -public static final native int _JSValueToBoolean (int /*long*/ ctx, int /*long*/ value); -public static final int JSValueToBoolean (int /*long*/ ctx, int /*long*/ value) { - lock.lock(); - try { - return _JSValueToBoolean (ctx, value); - } finally { - lock.unlock(); - } -} - -/** @method flags=dynamic */ public static final native double _JSValueToNumber (int /*long*/ ctx, int /*long*/ value, int /*long*/[] exception); public static final double JSValueToNumber (int /*long*/ ctx, int /*long*/ value, int /*long*/[] exception) { lock.lock(); |