[net9.0] Remove redundant availability attributes.

This commit is contained in:
Rolf Bjarne Kvinge 2024-03-05 09:45:54 +01:00
Родитель 69344dc1ca
Коммит f4036577f8
1 изменённых файлов: 8 добавлений и 16 удалений

Просмотреть файл

@ -524,10 +524,8 @@ namespace CoreGraphics {
static extern byte CGPreflightListenEventAccess (); static extern byte CGPreflightListenEventAccess ();
#if NET #if NET
[SupportedOSPlatform ("macos11.0")] [SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("maccatalyst15.0")] [SupportedOSPlatform ("maccatalyst")]
#else
[Mac (11,0)]
#endif #endif
public static bool PreflightListenEventAccess () => CGPreflightListenEventAccess () != 0; public static bool PreflightListenEventAccess () => CGPreflightListenEventAccess () != 0;
@ -552,27 +550,21 @@ namespace CoreGraphics {
static extern byte CGPreflightPostEventAccess (); static extern byte CGPreflightPostEventAccess ();
#if NET #if NET
[SupportedOSPlatform ("macos11.0")] [SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("maccatalyst15.0")] [SupportedOSPlatform ("maccatalyst")]
#else
[Mac (11,0)]
#endif #endif
public static bool PreflightPostEventAccess () => CGPreflightPostEventAccess () != 0; public static bool PreflightPostEventAccess () => CGPreflightPostEventAccess () != 0;
#if NET #if NET
[SupportedOSPlatform ("macos11.0")] [SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("maccatalyst15.0")] [SupportedOSPlatform ("maccatalyst")]
#else
[Mac (11,0)]
#endif #endif
[DllImport (Constants.ApplicationServicesCoreGraphicsLibrary)] [DllImport (Constants.ApplicationServicesCoreGraphicsLibrary)]
static extern byte CGRequestPostEventAccess (); static extern byte CGRequestPostEventAccess ();
#if NET #if NET
[SupportedOSPlatform ("macos11.0")] [SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("maccatalyst15.0")] [SupportedOSPlatform ("maccatalyst")]
#else
[Mac (11,0)]
#endif #endif
public static bool RequestPostEventAccess () => CGRequestPostEventAccess () != 0; public static bool RequestPostEventAccess () => CGRequestPostEventAccess () != 0;