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" ],