From 2740b40d818e4c8be55a30c3c833d91370ab12d5 Mon Sep 17 00:00:00 2001 From: Pasha Date: Wed, 28 Jan 2026 21:09:54 +0000 Subject: [PATCH] Removed Jetbrains.Annotations --- .../Runtime/Attributes/DetectInspectorChanges.cs | 7 +++---- Assets/Pacore/Runtime/Attributes/InspectorCallable.cs | 5 ++--- Assets/Pacore/Runtime/Attributes/InspectorReadOnly.cs | 11 +---------- Assets/Pacore/Runtime/Threading/ThreadSafeTry.cs | 3 +-- 4 files changed, 7 insertions(+), 19 deletions(-) diff --git a/Assets/Pacore/Runtime/Attributes/DetectInspectorChanges.cs b/Assets/Pacore/Runtime/Attributes/DetectInspectorChanges.cs index d272b67..5cf73e2 100644 --- a/Assets/Pacore/Runtime/Attributes/DetectInspectorChanges.cs +++ b/Assets/Pacore/Runtime/Attributes/DetectInspectorChanges.cs @@ -1,15 +1,14 @@ -using JetBrains.Annotations; -using UnityEngine; +using UnityEngine; using System; namespace PashaBibko.Pacore.Attributes { - [MeansImplicitUse, AttributeUsage(validOn: AttributeTargets.Field)] + [AttributeUsage(validOn: AttributeTargets.Field)] public sealed class DetectInspectorChangesAttribute : PropertyAttribute { public string ActionName { get; } - public DetectInspectorChangesAttribute([NotNull] string function) + public DetectInspectorChangesAttribute(string function) { ActionName = function; } diff --git a/Assets/Pacore/Runtime/Attributes/InspectorCallable.cs b/Assets/Pacore/Runtime/Attributes/InspectorCallable.cs index 29cd136..dcbd1d5 100644 --- a/Assets/Pacore/Runtime/Attributes/InspectorCallable.cs +++ b/Assets/Pacore/Runtime/Attributes/InspectorCallable.cs @@ -1,9 +1,8 @@ -using JetBrains.Annotations; -using System; +using System; namespace PashaBibko.Pacore.Attributes { - [MeansImplicitUse, AttributeUsage(AttributeTargets.Method)] + [AttributeUsage(AttributeTargets.Method)] public class InspectorCallableAttribute : Attribute { public string ButtonName { get; } diff --git a/Assets/Pacore/Runtime/Attributes/InspectorReadOnly.cs b/Assets/Pacore/Runtime/Attributes/InspectorReadOnly.cs index 8451379..ac9a876 100644 --- a/Assets/Pacore/Runtime/Attributes/InspectorReadOnly.cs +++ b/Assets/Pacore/Runtime/Attributes/InspectorReadOnly.cs @@ -1,11 +1,9 @@ -using JetBrains.Annotations; using UnityEngine; using System; namespace PashaBibko.Pacore.Attributes { -#if UNITY_EDITOR - [MeansImplicitUse, AttributeUsage(validOn: AttributeTargets.Field)] + [AttributeUsage(validOn: AttributeTargets.Field)] public sealed class InspectorReadOnlyAttribute : PropertyAttribute { public string Name { get; } @@ -15,11 +13,4 @@ namespace PashaBibko.Pacore.Attributes Name = name; } } -#else // #if UNITY_EDITOR - [MeansImplicitUse, AttributeUsage(validOn: AttributeTargets.Field)] - public sealed class InspectorReadOnlyAttribute : Attribute - { - public InspectorReadOnlyAttribute(string _name = null) { } - } -#endif // UNITY_EDITOR } diff --git a/Assets/Pacore/Runtime/Threading/ThreadSafeTry.cs b/Assets/Pacore/Runtime/Threading/ThreadSafeTry.cs index b615a5b..c81f6b9 100644 --- a/Assets/Pacore/Runtime/Threading/ThreadSafeTry.cs +++ b/Assets/Pacore/Runtime/Threading/ThreadSafeTry.cs @@ -1,5 +1,4 @@ using System.Runtime.CompilerServices; -using JetBrains.Annotations; using UnityEngine; using System; @@ -8,7 +7,7 @@ namespace PashaBibko.Pacore.Threading public static partial class ThreadSafe { [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Try([NotNull] Action action, Action final = null) + public static void Try(Action action, Action final = null) { try { action(); }