Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2017-09-29 01:46:27 -0400
committerLakshmi Shanmugam2017-09-29 01:46:27 -0400
commit1391d1e854f7ff317f836a800a7059ebc862d234 (patch)
tree2688204a4aaf5a985f199438f7fa5bc715806025 /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse
parent1af14fcabbfe1af82acdaa69cc84a9ccda312cf1 (diff)
downloadeclipse.platform.swt-1391d1e854f7ff317f836a800a7059ebc862d234.tar.gz
eclipse.platform.swt-1391d1e854f7ff317f836a800a7059ebc862d234.tar.xz
eclipse.platform.swt-1391d1e854f7ff317f836a800a7059ebc862d234.zip
Bug 521849: Fix deprecated warnings in Mac native build
'NSAddImage' is deprecated in macOS 10.5. It was required for xulrunner10 support. Remove it now as there is no XULRunner code/support. Change-Id: Ic8f2eb7d7ba66cda16072452beda43ced11655f8
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
index 02cbb61513..75b7edcf97 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
@@ -353,13 +353,6 @@ public static final native int GetIndMenuItemWithCommandID(long /*int*/ mHandle,
* @param index cast=(short)
*/
public static final native void DeleteMenuItem(long /*int*/ mHandle, short index);
-/**
- * @param image_name cast=(const char*)
- * @param options cast=(uint32_t)
- */
-public static final native long /*int*/ NSAddImage(byte[] image_name, int options);
-public static final int NSADDIMAGE_OPTION_RETURN_ON_ERROR = 0x1;
-public static final int NSADDIMAGE_OPTION_MATCH_FILENAME_BY_INSTALLNAME = 0x8;
/** @method flags=dynamic
* @param pmSessionInfo cast=(PMPrintSession)
* @param outPMPrinter cast=(PMPrinter *)

Back to the top