Depsgraph: Remove unused code
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 8 Jun 2016 14:56:23 +0000 (16:56 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 8 Jun 2016 15:33:04 +0000 (17:33 +0200)
Became obsolete after recent changes.

source/blender/depsgraph/intern/eval/deg_eval_flush.cc
source/blender/depsgraph/intern/nodes/deg_node_component.cc
source/blender/depsgraph/intern/nodes/deg_node_component.h

index 065121008d0a679a2ad9fa0bd2076d11c10a3484..fda665b0db4284933fa4051c3a20974bb0f1baf0 100644 (file)
@@ -85,8 +85,7 @@ static void flush_init_func(void *data_v, int i)
        id_node->done = 0;
        comp_node->done = 0;
        node->scheduled = false;
-       node->owner->flags &= ~DEPSCOMP_FULLY_SCHEDULED;
-       if (node->owner->type == DEPSNODE_TYPE_PROXY) {
+       if (comp_node->type == DEPSNODE_TYPE_PROXY) {
                node->flag |= DEPSOP_FLAG_NEEDS_UPDATE;
        }
 }
index 7e49fec051f95d0e343b6bce0d1bdd27bcd72210..8e74317cfa23d3f0b2b555895aaaa9df0da781a5 100644 (file)
@@ -86,7 +86,6 @@ static void comp_node_hash_value_free(void *value_v)
 ComponentDepsNode::ComponentDepsNode() :
     entry_operation(NULL),
     exit_operation(NULL),
-    flags(0),
     layers(0)
 {
        operations_map = BLI_ghash_new(comp_node_hash_key,
index df321ea9299d380188b0a9378a253334396d4806..6ff4345d28b6eaeb50d00127c323740fcdfb6b46 100644 (file)
@@ -47,13 +47,6 @@ struct Depsgraph;
 struct OperationDepsNode;
 struct BoneComponentDepsNode;
 
-typedef enum eDepsComponent_Flag {
-       /* Temporary flags, meaning all the component's operations has been
-        * scheduled for update.
-        */
-       DEPSCOMP_FULLY_SCHEDULED = 1,
-} eDepsComponent_Flag;
-
 /* ID Component - Base type for all components */
 struct ComponentDepsNode : public DepsNode {
        /* Key used to look up operations within a component */
@@ -165,8 +158,6 @@ struct ComponentDepsNode : public DepsNode {
 
        // XXX: a poll() callback to check if component's first node can be started?
 
-       int flags;
-
        /* Temporary bitmask, used during graph construction. */
        int layers;
 };