code cleanup: remove paranoid NULL checks (these cases would crash earlier of the...
[blender.git] / source / blender / compositor / intern / COM_ExecutionSystemHelper.cpp
index e41361fcb2ef5d899b65917fe3a942748fb77fac..bedbfc7272259c3913f4772753a83c4b254112ed 100644 (file)
@@ -79,14 +79,10 @@ void ExecutionSystemHelper::addNode(vector<Node *>& nodes, Node *node)
 
 Node *ExecutionSystemHelper::addNode(vector<Node *>& nodes, bNode *b_node, bool inActiveGroup, bool fast)
 {
-       Node *node;
-       node = Converter::convert(b_node, fast);
+       Node *node = Converter::convert(b_node, fast);
        node->setIsInActiveGroup(inActiveGroup);
-       if (node != NULL) {
-               addNode(nodes, node);
-               return node;
-       }
-       return NULL;
+       addNode(nodes, node);
+       return node;
 }
 void ExecutionSystemHelper::addOperation(vector<NodeOperation *>& operations, NodeOperation *operation)
 {