From 9707080a9d017d5c819a4f4d37f307c27299c552 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Thu, 18 Aug 2022 20:26:09 +0200 Subject: Cleanup: Remove unused outliner function This is unused, and I don't see a need for it. --- .../blender/editors/space_outliner/outliner_intern.hh | 4 ---- source/blender/editors/space_outliner/outliner_utils.cc | 17 ----------------- 2 files changed, 21 deletions(-) (limited to 'source/blender/editors/space_outliner') 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 @@ -615,10 +615,6 @@ TreeElement *outliner_find_item_at_x_in_row(const SpaceOutliner *space_outliner, float view_co_x, 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. */ 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) { -- cgit v1.2.3