diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-10-04 05:12:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-10-04 05:15:15 +0300 |
commit | 93e92ac1263505ea3a3bc5a42c1b2f55607ccc45 (patch) | |
tree | d85cd5d81f79ff557848d2422140e5d8fbf5836b /source/blender/editors/space_outliner | |
parent | 357acd1d5053b2ff9c8a09b9b6ad2e170c10b875 (diff) |
Cleanup: remove unused assignments
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/space_outliner/outliner_utils.c b/source/blender/editors/space_outliner/outliner_utils.c index 5feb157bfc8..c62ca468747 100644 --- a/source/blender/editors/space_outliner/outliner_utils.c +++ b/source/blender/editors/space_outliner/outliner_utils.c @@ -117,10 +117,8 @@ static TreeElement *outliner_find_item_at_x_in_row_recursive(const TreeElement * { TreeElement *child_te = parent_te->subtree.first; - bool over_element = false; - while (child_te) { - over_element = (view_co_x > child_te->xs) && (view_co_x < child_te->xend); + const bool over_element = (view_co_x > child_te->xs) && (view_co_x < child_te->xend); if ((child_te->flag & TE_ICONROW) && over_element) { return child_te; } |