X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_ExportFeature.cpp;h=bf677c743730ed28aecade2876c3acdfd2e9c675;hb=ea593bc59e7e9461f6c4e2afd3f24d621edb1011;hp=f38b1c60532e0bced2f5491a4bf4ea430209f903;hpb=9f251783e55f12d37ce7795d8f3b30d478a711a0;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp index f38b1c605..bf677c743 100644 --- a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp +++ b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp @@ -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& 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 {