From 9e8bc1d579fe4a22ca81d062e8e7118dc4aa6720 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Thu, 22 Jun 2023 15:20:54 +0200 Subject: [PATCH] Fix unused variable warning --- source/blender/editors/space_outliner/outliner_tree.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/blender/editors/space_outliner/outliner_tree.cc b/source/blender/editors/space_outliner/outliner_tree.cc index c101aa35330..0f0c9c61122 100644 --- a/source/blender/editors/space_outliner/outliner_tree.cc +++ b/source/blender/editors/space_outliner/outliner_tree.cc @@ -230,10 +230,7 @@ static void outliner_add_line_styles(SpaceOutliner *space_outliner, } #endif /* Can be inlined if necessary. */ -static void outliner_add_id_contents(SpaceOutliner *space_outliner, - TreeElement *te, - TreeStoreElem *tselem, - ID *id) +static void outliner_add_id_contents(SpaceOutliner *space_outliner, TreeElement *te, ID *id) { /* expand specific data always */ switch (GS(id->name)) { @@ -459,7 +456,7 @@ TreeElement *outliner_add_element(SpaceOutliner *space_outliner, else if (type == TSE_SOME_ID) { /* ID types not (fully) ported to new design yet. */ if (te->abstract_element->expandPoll(*space_outliner)) { - outliner_add_id_contents(space_outliner, te, tselem, id); + outliner_add_id_contents(space_outliner, te, id); } } else if (ELEM(type,