From b1b1fbec3f019321b5755cc503d655472863704c Mon Sep 17 00:00:00 2001 From: Nathaniel Bond Date: Wed, 31 Jan 2024 21:52:15 -0500 Subject: [PATCH] Remove dead method --- src/Rearch/DataflowGraphNode.cs | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/Rearch/DataflowGraphNode.cs b/src/Rearch/DataflowGraphNode.cs index 0832850..b2fbc39 100644 --- a/src/Rearch/DataflowGraphNode.cs +++ b/src/Rearch/DataflowGraphNode.cs @@ -17,32 +17,6 @@ internal abstract class DataflowGraphNode : IDisposable /// public abstract bool IsSuperPure { get; } - /// - /// Prune unused nodes from the network. Nodes are unused if nothing depends on them and they have no side effects. - /// - /// List of nodes to consider for pruning. - /// List of nodes after pruning. - public static IEnumerable GarbageCollectDisposableNodes( - IList buildOrder) - { - var nonDisposable = new List(); - - foreach (var node in buildOrder.Reverse()) - { - var isDisposable = node.IsSuperPure && node.dependents.Count == 0; - if (isDisposable) - { - node.Dispose(); - } - else - { - nonDisposable.Add(node); - } - } - - return nonDisposable.AsEnumerable().Reverse(); - } - /// /// Updates node data. ///