Browse Source

char: remove deprecated overload of Character::merge_bundles()

rdb 5 years ago
parent
commit
141482fc53
2 changed files with 0 additions and 31 deletions
  1. 0 30
      panda/src/char/character.cxx
  2. 0 1
      panda/src/char/character.h

+ 0 - 30
panda/src/char/character.cxx

@@ -237,36 +237,6 @@ calc_tight_bounds(LPoint3 &min_point, LPoint3 &max_point, bool &found_any,
                                       found_any, transform, current_thread);
                                       found_any, transform, current_thread);
 }
 }
 
 
-/**
- * Merges old_bundle with new_bundle.  old_bundle must be one of the
- * PartBundles within this node.  At the end of this call, the old_bundle
- * pointer within this node will be replaced with the new_bundle pointer, and
- * all geometry within this node will be updated to reference new_bundle.
- *
- * @deprecated Use the newer version of this method, below.
- */
-void Character::
-merge_bundles(PartBundle *old_bundle, PartBundle *new_bundle) {
-  if (old_bundle == new_bundle) {
-    // Trivially return.
-    return;
-  }
-
-  // Find the PartBundleHandle of old_bundle.
-  PT(PartBundleHandle) old_bundle_handle;
-  Bundles::const_iterator bi;
-  for (bi = _bundles.begin(); bi != _bundles.end(); ++bi) {
-    if ((*bi)->get_bundle() == old_bundle) {
-      old_bundle_handle = (*bi);
-      break;
-    }
-  }
-  nassertv(!old_bundle_handle.is_null());
-
-  PT(PartBundleHandle) new_bundle_handle = new PartBundleHandle(new_bundle);
-  merge_bundles(old_bundle_handle, new_bundle_handle);
-}
-
 /**
 /**
  * Merges old_bundle_handle->get_bundle() with new_bundle.  old_bundle_handle
  * Merges old_bundle_handle->get_bundle() with new_bundle.  old_bundle_handle
  * must be one of the PartBundleHandle within this node.  At the end of this
  * must be one of the PartBundleHandle within this node.  At the end of this

+ 0 - 1
panda/src/char/character.h

@@ -59,7 +59,6 @@ PUBLISHED:
   virtual PandaNode *combine_with(PandaNode *other);
   virtual PandaNode *combine_with(PandaNode *other);
 
 
   INLINE CharacterJointBundle *get_bundle(int i) const;
   INLINE CharacterJointBundle *get_bundle(int i) const;
-  void merge_bundles(PartBundle *old_bundle, PartBundle *other_bundle);
   void merge_bundles(PartBundleHandle *old_bundle_handle,
   void merge_bundles(PartBundleHandle *old_bundle_handle,
                      PartBundleHandle *other_bundle_handle);
                      PartBundleHandle *other_bundle_handle);