From 2e726b86799cd9a32018124f5ce325cba900b957 Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Tue, 9 Oct 2012 11:55:37 +0300 Subject: Fix for bug#391404 - Remove GdkImage_sizeof. Method is not used anywhere and just breaks compilation. --- bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c | 12 ------------ .../org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c | 1 - .../org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h | 1 - .../Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java | 1 - 4 files changed, 15 deletions(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c index c6abfa662a..9cd1bfaf76 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c @@ -669,18 +669,6 @@ JNIEXPORT jint JNICALL OS_NATIVE(GdkGeometry_1sizeof) } #endif -#ifndef NO_GdkImage_1sizeof -JNIEXPORT jint JNICALL OS_NATIVE(GdkImage_1sizeof) - (JNIEnv *env, jclass that) -{ - jint rc = 0; - OS_NATIVE_ENTER(env, that, GdkImage_1sizeof_FUNC); - rc = (jint)GdkImage_sizeof(); - OS_NATIVE_EXIT(env, that, GdkImage_1sizeof_FUNC); - return rc; -} -#endif - #ifndef NO_GdkRectangle_1sizeof JNIEXPORT jint JNICALL OS_NATIVE(GdkRectangle_1sizeof) (JNIEnv *env, jclass that) diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c index 5ce3d6f20c..e2f989556d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c @@ -81,7 +81,6 @@ char * OS_nativeFunctionNames[] = { "GdkEvent_1sizeof", "GdkGCValues_1sizeof", "GdkGeometry_1sizeof", - "GdkImage_1sizeof", "GdkRectangle_1sizeof", "GdkVisual_1sizeof", "GdkWindowAttr_1sizeof", diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h index 742fb58ce0..e3c1bc81cd 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h @@ -91,7 +91,6 @@ typedef enum { GdkEvent_1sizeof_FUNC, GdkGCValues_1sizeof_FUNC, GdkGeometry_1sizeof_FUNC, - GdkImage_1sizeof_FUNC, GdkRectangle_1sizeof_FUNC, GdkVisual_1sizeof_FUNC, GdkWindowAttr_1sizeof_FUNC, diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java index 475ebbe335..475739a0db 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java @@ -637,7 +637,6 @@ public static final native int GdkEventVisibility_sizeof(); public static final native int GdkEventWindowState_sizeof(); public static final native int GdkGCValues_sizeof(); public static final native int GdkGeometry_sizeof(); -public static final native int GdkImage_sizeof(); public static final native int GdkRectangle_sizeof(); public static final native int GdkVisual_sizeof(); public static final native int GdkWindowAttr_sizeof(); -- cgit