Skip to content

Commit

Permalink
Revert "Fix warning message on Mac about secure coding not enabled (e…
Browse files Browse the repository at this point in the history
…clipse-platform#1231)"

- This can cause a crash to desktop
  • Loading branch information
Phillipus committed May 20, 2024
1 parent 89055b4 commit 9a267b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,8 @@ public static int VERSION (int major, int minor, int bugfix) {
public static final long sel_setStyle = Selector.sel_setStyle.value;
public static final int NSTableViewStylePlain = 4;

/** 14.0 selectors */
public static final long sel_setClipsToBounds_ = Selector.sel_setClipsToBounds_.value;
public static final long sel_applicationSupportsSecureRestorableState_ = Selector.sel_applicationSupportsSecureRestorableState_.value;
/** 14.0 selector */
public static final long sel_setClipsToBounds_ = Selector.sel_setClipsToBounds_.value;

/* AWT application delegate. Remove these when JavaRuntimeSupport.framework has bridgesupport generated for it. */
public static final long class_JRSAppKitAWT = objc_getClass("JRSAppKitAWT");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ public enum Selector {
/** 11.0 selector */
, sel_setStyle("setStyle:")

/** 14.0 selectors */
/** 14.0 selector */
, sel_setClipsToBounds_("setClipsToBounds:")
, sel_applicationSupportsSecureRestorableState_("applicationSupportsSecureRestorableState:")

, sel_awtAppDelegate("awtAppDelegate")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,6 @@ void createDisplay (DeviceData data) {
OS.class_addMethod(cls, OS.sel_application_openUrls_, appProc4, "@:@@");
OS.class_addMethod(cls, OS.sel_applicationShouldHandleReopen_hasVisibleWindows_, appProc4, "@:@B");
OS.class_addMethod(cls, OS.sel_applicationShouldTerminate_, appProc3, "@:@");
OS.class_addMethod(cls, OS.sel_applicationSupportsSecureRestorableState_, appProc3, "@:@");
OS.objc_registerClassPair(cls);
}

Expand Down Expand Up @@ -5903,9 +5902,6 @@ static long applicationProc(long id, long sel, long arg0) {
}
return 0;
}
case sel_applicationSupportsSecureRestorableState_: {
return 1;
}
default: {
return 0;
}
Expand Down

0 comments on commit 9a267b8

Please sign in to comment.