[Bf-blender-cvs] [5ed27372ab4] master: Remove no-longer needed function

Dalai Felinto noreply at git.blender.org
Wed Feb 6 21:49:14 CET 2019


Commit: 5ed27372ab455d96b0c028ca67f578fd896a44d5
Author: Dalai Felinto
Date:   Wed Feb 6 18:47:47 2019 -0200
Branches: master
https://developer.blender.org/rB5ed27372ab455d96b0c028ca67f578fd896a44d5

Remove no-longer needed function

===================================================================

M	source/blender/blenkernel/intern/layer.c

===================================================================

diff --git a/source/blender/blenkernel/intern/layer.c b/source/blender/blenkernel/intern/layer.c
index 26a9326409f..993df715218 100644
--- a/source/blender/blenkernel/intern/layer.c
+++ b/source/blender/blenkernel/intern/layer.c
@@ -990,20 +990,6 @@ static void layer_collection_flag_unset_recursive(LayerCollection *lc, const int
 	}
 }
 
-/**
- * Return true if something changed. */
-static bool layer_collection_collection_flag_unset_recursive(LayerCollection *lc, const int flag)
-{
-	bool changed = (lc->collection->flag & flag) != 0;
-
-	lc->collection->flag &= ~flag;
-	for (LayerCollection *lc_iter = lc->layer_collections.first; lc_iter; lc_iter = lc_iter->next) {
-		changed |= layer_collection_collection_flag_unset_recursive(lc_iter, flag);
-	}
-
-	return changed;
-}
-
 /**
  * Isolate the collection - hide all other collections but this one.
  * Make sure to show all the direct parents and all children of the layer collection as well.



More information about the Bf-blender-cvs mailing list