Depsgraph: Cleanup, remove unused function
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 5 Dec 2017 15:51:21 +0000 (16:51 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 6 Dec 2017 09:21:33 +0000 (10:21 +0100)
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
source/blender/depsgraph/intern/builder/deg_builder_relations.h

index 788e73a3e68d17248ee808ba1b9d5549fd946f92..5b7b4d4b533d763eb5418cb29437f9f69b66c1a7 100644 (file)
@@ -1785,15 +1785,6 @@ void DepsgraphRelationBuilder::build_gpencil(bGPdata *gpd)
        // TODO: parent object (when that feature is implemented)
 }
 
-bool DepsgraphRelationBuilder::needs_animdata_node(ID *id)
-{
-       AnimData *adt = BKE_animdata_from_id(id);
-       if (adt != NULL) {
-               return (adt->action != NULL) || (adt->nla_tracks.first != NULL);
-       }
-       return false;
-}
-
 void DepsgraphRelationBuilder::build_cachefile(CacheFile *cache_file) {
        /* Animation. */
        build_animdata(&cache_file->id);
index f64ebebda75df8de21a1b91339949b2f7408c99d..9dd14b631af72e4b28c3b46a3672dacc6a93c62d 100644 (file)
@@ -276,8 +276,6 @@ protected:
        DepsNodeHandle create_node_handle(const KeyType& key,
                                          const char *default_name = "");
 
-       bool needs_animdata_node(ID *id);
-
        template <typename KeyFrom, typename KeyTo>
        bool is_same_bone_dependency(const KeyFrom& key_from, const KeyTo& key_to);