[Bf-blender-cvs] [9707080a9d0] master: Cleanup: Remove unused outliner function
Julian Eisel
noreply at git.blender.org
Thu Aug 18 21:15:23 CEST 2022
Commit: 9707080a9d017d5c819a4f4d37f307c27299c552
Author: Julian Eisel
Date: Thu Aug 18 20:26:09 2022 +0200
Branches: master
https://developer.blender.org/rB9707080a9d017d5c819a4f4d37f307c27299c552
Cleanup: Remove unused outliner function
This is unused, and I don't see a need for it.
===================================================================
M source/blender/editors/space_outliner/outliner_intern.hh
M source/blender/editors/space_outliner/outliner_utils.cc
===================================================================
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) {
More information about the Bf-blender-cvs
mailing list