Salome HOME
Create validator for distance constraint
[modules/shaper.git] / src / ModuleBase / ModuleBase_Tools.cpp
index d3dd6f7ee16f288558d95a371f384d3100181d92..87f636360229b6e5d2d68ee3fa910042cb5d957d 100644 (file)
@@ -11,28 +11,6 @@ namespace ModuleBase_Tools
 {
 
 //******************************************************************
-boost::shared_ptr<GeomAPI_Shape> shape(ResultPtr theResult)
-{
-  ResultBodyPtr aBody = boost::dynamic_pointer_cast<ModelAPI_ResultBody>(theResult);
-  if (aBody) return aBody->shape();
-  ResultConstructionPtr aConstruct = boost::dynamic_pointer_cast<ModelAPI_ResultConstruction>(theResult);
-  if (aConstruct) return aConstruct->shape();
-  return boost::shared_ptr<GeomAPI_Shape>();
-}
 
 //******************************************************************
-FeaturePtr feature(ObjectPtr theObject)
-{
-  FeaturePtr aFeature = boost::dynamic_pointer_cast<ModelAPI_Feature>(theObject);
-  if (!aFeature) {
-    ResultPtr aResult = boost::dynamic_pointer_cast<ModelAPI_Result>(theObject);
-    if (aResult) {
-      PluginManagerPtr aMgr = ModelAPI_PluginManager::get();
-      DocumentPtr aDoc = aMgr->rootDocument();
-      return aDoc->feature(aResult);
-    }
-  }
-  return aFeature;
-}
-
 }