Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
Validity is checked in indexOf() as well.
  • Loading branch information
rhaschke committed Nov 5, 2023
1 parent ff4e004 commit c608239
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/rviz/properties/property_tree_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ QModelIndex PropertyTreeModel::parentIndex(const Property* child) const
return QModelIndex();
}
Property* parent = child->getParent();
if (parent == root_property_ || !parent)
{
return QModelIndex();
}
return indexOf(parent);
}

Expand Down

0 comments on commit c608239

Please sign in to comment.