Commit: 3330e518dc7ad941ec10e3c99eb6d051716cfefe
Author: Sergey Sharybin
Date:   Fri Nov 3 17:00:00 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB3330e518dc7ad941ec10e3c99eb6d051716cfefe

Depsgraph: Cleanup, remove unused function

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

M       source/blender/depsgraph/DEG_depsgraph_build.h
M       source/blender/depsgraph/intern/depsgraph_build.cc

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

diff --git a/source/blender/depsgraph/DEG_depsgraph_build.h 
b/source/blender/depsgraph/DEG_depsgraph_build.h
index 92d47618cd7..06202b6196e 100644
--- a/source/blender/depsgraph/DEG_depsgraph_build.h
+++ b/source/blender/depsgraph/DEG_depsgraph_build.h
@@ -73,11 +73,6 @@ void DEG_graph_relations_update(struct Depsgraph *graph,
 /* Tag all relations in the database for update.*/
 void DEG_relations_tag_update(struct Main *bmain);
 
-/* Create new graph if didn't exist yet,
- * or update relations if graph was tagged for update.
- */
-void DEG_scene_relations_update(struct Main *bmain, struct Scene *scene);
-
 /* Add Dependencies  ----------------------------- */
 
 /* Handle for components to define their dependencies from callbacks.
diff --git a/source/blender/depsgraph/intern/depsgraph_build.cc 
b/source/blender/depsgraph/intern/depsgraph_build.cc
index 7dd9d1451cd..70799a81835 100644
--- a/source/blender/depsgraph/intern/depsgraph_build.cc
+++ b/source/blender/depsgraph/intern/depsgraph_build.cc
@@ -282,25 +282,6 @@ void DEG_relations_tag_update(Main *bmain)
        }
 }
 
-/* Create new graph if didn't exist yet,
- * or update relations if graph was tagged for update.
- */
-void DEG_scene_relations_update(Main *bmain, Scene *scene)
-{
-       if (scene->depsgraph_legacy == NULL) {
-               /* Rebuild graph from scratch and exit. */
-               scene->depsgraph_legacy = DEG_graph_new();
-               DEG_graph_build_from_scene(scene->depsgraph_legacy, bmain, 
scene);
-               /* TODO(sergey): When we first create dependency graph we 
consider
-                * it is first time became visible. This is true for viewports, 
but
-                * will fail when render engines will start having their own 
graphs.
-                */
-               DEG_graph_on_visible_update(bmain, scene->depsgraph_legacy);
-               return;
-       }
-       DEG_graph_relations_update(scene->depsgraph_legacy, bmain, scene);
-}
-
 void DEG_add_collision_relations(DepsNodeHandle *handle,
                                  Scene *scene,
                                  Object *ob,

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to