Avalonia.Controls.TreeDataGrid icon indicating copy to clipboard operation
Avalonia.Controls.TreeDataGrid copied to clipboard

Weird if-else condition and method not used

Open danipen opened this issue 11 months ago • 0 comments

Hey @grokys, I noticed a weird condition in SelectionNodeBase.cs: Both if-else conditions are returning an empty result. https://github.com/AvaloniaUI/Avalonia.Controls.TreeDataGrid/blob/8fbb6193b5f2cdbcd298a36ad13f4ca954dd4d38/src/Avalonia.Controls.TreeDataGrid/Selection/SelectionNodeBase.cs#L389-L397

But I also saw that the private method containing it isn't used anywhere. Is it safe to remove it?

Thanks!

danipen avatar Apr 08 '25 14:04 danipen