Cleanup: Remove unused outliner function
This is unused, and I don't see a need for it.
This commit is contained in:
parent
9961aae1e6
commit
9707080a9d
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue