Salome HOME
Issue #2998: Add help description for automatic creation of constraints
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_ExportFeature.cpp
index f38b1c60532e0bced2f5491a4bf4ea430209f903..bf677c743730ed28aecade2876c3acdfd2e9c675 100644 (file)
@@ -297,21 +297,6 @@ static bool isInResults(AttributeSelectionListPtr theSelection,
   return false;
 }
 
-/// Returns all sub-shapes of the given shape in theResult
-static void allSubShapes(const GeomShapePtr theShape, GeomAPI_Shape::ShapeType theType,
-  std::list<GeomShapePtr>& theResult)
-{
-  if (theShape->shapeType() == theType) {
-    theResult.push_back(theShape);
-  } else {
-    GeomAPI_DataMapOfShapeShape aUnique; // to keep only unique shapes
-    for(GeomAPI_ShapeExplorer anExp(theShape, theType); anExp.more(); anExp.next()) {
-      if (aUnique.bind(anExp.current(), anExp.current()))
-        theResult.push_back(anExp.current());
-    }
-  }
-}
-
 void ExchangePlugin_ExportFeature::exportXAO(const std::string& theFileName)
 {
   try {