Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Weird if-else condition and method not used #353

Open

Description

@danipen

Hey @grokys, I noticed a weird condition in SelectionNodeBase.cs: Both if-else conditions are returning an empty result.

if (selectedItemsMoved || unselectedItemsMoved)
{
var changes = new List<CollectionChangeState>();
return changes;
}
else
{
return [];
}

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

Thanks!

Activity

  1. changed the title [-]Same if-else and method not used[/-] [+]Weird if-else condition and method not used[/+] on Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions