Salome HOME
Merge branch 'Dev_0.7.1' of newgeom:newgeom.git into Dev_0.7.1
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Feature.cpp
index 42c5956b85da8181c408d3b2659c72a7bf5b2830..6e0f7111d1c29125622aae6885db76c5e1003b5e 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+
 #include "SketchPlugin_Feature.h"
 #include "SketchPlugin_Sketch.h"
 #include <ModelAPI_Document.h>
@@ -29,19 +31,3 @@ SketchPlugin_Sketch* SketchPlugin_Feature::sketch()
   return mySketch;
 }
 
-AISObjectPtr SketchPlugin_Feature::simpleAISObject(std::shared_ptr<ModelAPI_Result> theRes,
-                                                   AISObjectPtr thePrevious)
-{
-  std::shared_ptr<ModelAPI_ResultConstruction> aConstr = std::dynamic_pointer_cast<
-      ModelAPI_ResultConstruction>(theRes);
-
-  std::shared_ptr<GeomAPI_Shape> aPreview;
-  if (aConstr)
-    aPreview = aConstr->shape();
-
-  AISObjectPtr aResult = thePrevious;
-  if (!aResult)
-    aResult = AISObjectPtr(new GeomAPI_AISObject());
-  aResult->createShape(aPreview);
-  return aResult;
-}