From 102b4fb7bfa2787b3fc05433137cd205daae0ffa Mon Sep 17 00:00:00 2001 From: Pasha Date: Mon, 2 Feb 2026 10:20:36 +0000 Subject: [PATCH] Revert "Merge branch 'main' of https://git.bibko.uk/Pasha/Pacore" This reverts commit 0dc0896291f1a0c3d4c3513f11e4738e050f0ddb, reversing changes made to 1524422b09847927670037e09e0b7374c93cf82b. --- Assets/Pacore/Runtime/ClassAttributeCache.cs | 20 ------------------- Assets/Pacore/Runtime/DelegateFunction.cs | 4 ---- .../Pacore/Runtime/DelegateFunction.cs.meta | 3 --- Assets/Pacore/package.json | 2 +- 4 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 Assets/Pacore/Runtime/DelegateFunction.cs delete mode 100644 Assets/Pacore/Runtime/DelegateFunction.cs.meta diff --git a/Assets/Pacore/Runtime/ClassAttributeCache.cs b/Assets/Pacore/Runtime/ClassAttributeCache.cs index 718178b..db8da39 100644 --- a/Assets/Pacore/Runtime/ClassAttributeCache.cs +++ b/Assets/Pacore/Runtime/ClassAttributeCache.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Linq; using System; -using System.Diagnostics; using UnityEngine; namespace PashaBibko.Pacore @@ -10,15 +9,6 @@ namespace PashaBibko.Pacore public static class ClassAttributeCache { private static Dictionary> AttributeCache { get; set; } - private static DelegateFunction OnCacheInstantiated = LogCacheInformation; - - private static int AttributeCount; - private static int ClassCount; - private static long TimeTaken; - - private static void LogCacheInformation() - { - } public static ReadOnlyCollection GetAttributesOf() { @@ -30,8 +20,6 @@ namespace PashaBibko.Pacore [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterAssembliesLoaded)] private static void ScanAllAssemblies() { - Stopwatch timer = Stopwatch.StartNew(); - /* Fetches all the class types in all loaded assemblies */ Type[] classes = AppDomain.CurrentDomain.GetAssemblies() // Assembly[] .SelectMany(assembly => assembly.GetTypes()) // IEnumerable @@ -64,14 +52,6 @@ namespace PashaBibko.Pacore AttributeCache[type].Add(current); } } - - /* Stores all relevant info for logging */ - TimeTaken = timer.ElapsedMilliseconds; - AttributeCount = AttributeCache.Count; - ClassCount = classes.Length; - - /* Calls the delegate function for any dependencies */ - OnCacheInstantiated.Invoke(); } } } diff --git a/Assets/Pacore/Runtime/DelegateFunction.cs b/Assets/Pacore/Runtime/DelegateFunction.cs deleted file mode 100644 index 8487f3b..0000000 --- a/Assets/Pacore/Runtime/DelegateFunction.cs +++ /dev/null @@ -1,4 +0,0 @@ -namespace PashaBibko.Pacore -{ - public delegate void DelegateFunction(); -} diff --git a/Assets/Pacore/Runtime/DelegateFunction.cs.meta b/Assets/Pacore/Runtime/DelegateFunction.cs.meta deleted file mode 100644 index 5576161..0000000 --- a/Assets/Pacore/Runtime/DelegateFunction.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 627efc92baea4fec9e576642408e796c -timeCreated: 1769701523 \ No newline at end of file diff --git a/Assets/Pacore/package.json b/Assets/Pacore/package.json index d6d8ae0..9421e22 100644 --- a/Assets/Pacore/package.json +++ b/Assets/Pacore/package.json @@ -1,7 +1,7 @@ { "name": "com.pashabibko.pacore", "displayName": "Pacore", - "version": "1.0.0", + "version": "1.1.1-alpha", "unity": "2022.3", "description" : "Small Unity Util library", "keywords": [ "tool", "script", "runtime" ],