Skip to content

Commit

Permalink
Remove childrenNeedFiltering
Browse files Browse the repository at this point in the history
  • Loading branch information
siegfriedpammer committed Nov 19, 2024
1 parent 1730234 commit 9986104
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions ILSpy/TreeNodes/ILSpyTreeNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ namespace ICSharpCode.ILSpy.TreeNodes
/// </summary>
public abstract class ILSpyTreeNode : SharpTreeNode, ITreeNode
{
bool childrenNeedFiltering;

protected ILSpyTreeNode()
{
MessageBus<SettingsChangedEventArgs>.Subscribers += (sender, e) => Settings_Changed(sender, e);
Expand Down Expand Up @@ -110,10 +108,6 @@ public override void OnChildrenChanged(NotifyCollectionChangedEventArgs e)
foreach (ILSpyTreeNode node in e.NewItems)
ApplyFilterToChild(node);
}
else
{
childrenNeedFiltering = true;
}
}
}

Expand Down Expand Up @@ -152,16 +146,11 @@ protected virtual void Settings_Changed(object sender, PropertyChangedEventArgs
foreach (ILSpyTreeNode node in this.Children.OfType<ILSpyTreeNode>())
ApplyFilterToChild(node);
}
else
{
childrenNeedFiltering = true;
}
}

internal void EnsureChildrenFiltered()
{
EnsureLazyChildren();
childrenNeedFiltering = false;
foreach (ILSpyTreeNode node in this.Children.OfType<ILSpyTreeNode>())
ApplyFilterToChild(node);
}
Expand Down

0 comments on commit 9986104

Please sign in to comment.