diff --git a/src/DataStructure/CacheItem.cs b/src/DataStructure/CacheItem.cs
index dc06044..7c4ac24 100644
--- a/src/DataStructure/CacheItem.cs
+++ b/src/DataStructure/CacheItem.cs
@@ -1,5 +1,3 @@
-using System.Diagnostics;
-
namespace Skeleton.DataStructure;
///
@@ -8,16 +6,12 @@ namespace Skeleton.DataStructure;
public class CacheItem
{
- public CacheItem(Func cal) => ProxyCalculator = cal;
-
- public static readonly CacheItem Null = new CacheItem(x => false);
///
/// if the item needs update
///
public bool Expired { get; protected set; } = true;
- internal HashSet References { get; set; } = new();
- internal HashSet Dependencies { get; set; } = new();
- private Func
///
- public void UpdateCalculation(Func val)
+ public void UpdateCalculation(Func val)
{
Expire();
foreach (CacheItem item in Dependencies)
@@ -117,7 +83,6 @@ public class CacheItem : CacheItem
ProxyCalculator = val;
}
-
public void Assign(TObject b) => UpdateCalculation(x => b);
}