From 431d501f279eaef426efe02dc7df650a865de2a3 Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Mon, 26 Feb 2024 12:08:01 +0800 Subject: [PATCH] remove useless --- src/Debug/EcsDebugUtility.cs | 37 ------------------------------------ 1 file changed, 37 deletions(-) diff --git a/src/Debug/EcsDebugUtility.cs b/src/Debug/EcsDebugUtility.cs index 8806499..dd26d55 100644 --- a/src/Debug/EcsDebugUtility.cs +++ b/src/Debug/EcsDebugUtility.cs @@ -422,8 +422,6 @@ namespace DCFApixels.DragonECS #endregion } - - [Serializable] public sealed class TypeMetaData { @@ -444,9 +442,6 @@ namespace DCFApixels.DragonECS } } - - - public class TypeMetaDataCached { internal readonly Type _type; @@ -571,36 +566,4 @@ namespace DCFApixels.DragonECS All = Name | Group | Color | Description | Tags } } -} - - -namespace DCFApixels.DragonECS.Internal -{ - internal static class EcsTypeMeta - { - private static readonly Dictionary _codes = new Dictionary(); - private static int _increment = 1; - public static int Count - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return _codes.Count; } - } - public static int Get(Type type) - { - if (!_codes.TryGetValue(type, out int code)) - { - code = _increment++; - _codes.Add(type, code); - } - return code; - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int Get() { return EcsTypeCodeCache.code; } - public static bool Has(Type type) { return _codes.ContainsKey(type); } - public static bool Has() { return _codes.ContainsKey(typeof(T)); } - } - internal static class EcsTypeMetaCache - { - public static readonly int code = EcsTypeMeta.Get(typeof(T)); - } } \ No newline at end of file