- else{
- QObjectPtrList::const_iterator anIt = myExternalObjects.begin(), aLast = myExternalObjects.end();
- for (; anIt != aLast; anIt++) {
- ObjectPtr anObject = *anIt;
- removeExternalObject(anObject, theSketch, theFeature, theWorkshop);
- }
- myExternalObjects.clear();
- }
-}
-
-//********************************************************************
-void PartSet_ExternalObjectsMgr::removeUnusedExternalObjects(const QObjectPtrList& theIgnoreObjects,
- const CompositeFeaturePtr& theSketch,
- const FeaturePtr& theFeature)
-{
- /*
- // TODO(nds): unite with removeExternal(), remove parameters
- QObjectPtrList aUsedExternalObjects;
-
- QObjectPtrList::const_iterator anIt = myExternalObjects.begin(), aLast = myExternalObjects.end();
- for (; anIt != aLast; anIt++) {
- ObjectPtr anObject = *anIt;
- if (theIgnoreObjects.contains(anObject))
- aUsedExternalObjects.append(anObject);
- else
- removeExternalObject(anObject, theSketch, theFeature);
- }*/
- myExternalObjects.clear();
- //if (!aUsedExternalObjects.empty())
- // myExternalObjects = aUsedExternalObjects;