diff options
author | Julian Eisel <julian@blender.org> | 2022-08-18 21:26:09 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-08-18 22:14:54 +0300 |
commit | 9707080a9d017d5c819a4f4d37f307c27299c552 (patch) | |
tree | 93d04719ab2ddc504df4cfeeea0b060d3f8cd0b7 /source/blender/editors/space_outliner | |
parent | 9961aae1e600f2154a1e14f2ae9ab21936bf781a (diff) |
Cleanup: Remove unused outliner function
This is unused, and I don't see a need for it.
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_intern.hh | 4 | ||||
-rw-r--r-- | source/blender/editors/space_outliner/outliner_utils.cc | 17 |
2 files changed, 0 insertions, 21 deletions
diff --git a/source/blender/editors/space_outliner/outliner_intern.hh b/source/blender/editors/space_outliner/outliner_intern.hh index 80254a5cb88..e89342de698 100644 --- a/source/blender/editors/space_outliner/outliner_intern.hh +++ b/source/blender/editors/space_outliner/outliner_intern.hh @@ -616,10 +616,6 @@ TreeElement *outliner_find_item_at_x_in_row(const SpaceOutliner *space_outliner, bool *r_is_merged_icon, bool *r_is_over_icon); /** - * `tse` is not in the tree-store, we use its contents to find a match. - */ -TreeElement *outliner_find_tse(struct SpaceOutliner *space_outliner, const TreeStoreElem *tse); -/** * Find specific item from the trees-tore. */ TreeElement *outliner_find_tree_element(ListBase *lb, const TreeStoreElem *store_elem); diff --git a/source/blender/editors/space_outliner/outliner_utils.cc b/source/blender/editors/space_outliner/outliner_utils.cc index 2ce017f4f64..2ab9e146bc1 100644 --- a/source/blender/editors/space_outliner/outliner_utils.cc +++ b/source/blender/editors/space_outliner/outliner_utils.cc @@ -175,23 +175,6 @@ TreeElement *outliner_find_parent_element(ListBase *lb, return nullptr; } -TreeElement *outliner_find_tse(SpaceOutliner *space_outliner, const TreeStoreElem *tse) -{ - TreeStoreElem *tselem; - - if (tse->id == nullptr) { - return nullptr; - } - - /* Check if 'tse' is in tree-store. */ - tselem = space_outliner->runtime->tree_hash->lookup_any(tse->type, tse->nr, tse->id); - if (tselem) { - return outliner_find_tree_element(&space_outliner->tree, tselem); - } - - return nullptr; -} - TreeElement *outliner_find_id(SpaceOutliner *space_outliner, ListBase *lb, const ID *id) { LISTBASE_FOREACH (TreeElement *, te, lb) { |