From: azv Date: Wed, 20 Jan 2016 07:17:27 +0000 (+0300) Subject: Remove unused static function X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b263a311a1d7f3702f8bdaca250b4ed306375b0a;p=modules%2Fshaper.git Remove unused static function --- diff --git a/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp b/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp index 1859ec215..934966b52 100644 --- a/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp @@ -37,28 +37,3 @@ void SketchSolver_ConstraintCoincidence::getAttributes( } else myErrorMsg = SketchSolver_Error::INCORRECT_ATTRIBUTE(); } - - -static bool isBase(const std::list& theConstraints, AttributePtr theAttribute) -{ - AttributePtr anAttribute = theAttribute; - FeaturePtr aFeature; - AttributeRefAttrPtr aRefAttr = std::dynamic_pointer_cast(theAttribute); - if (aRefAttr) { - if (aRefAttr->isObject()) - aFeature = ModelAPI_Feature::feature(aRefAttr->object()); - else - anAttribute = aRefAttr->attr(); - } - - std::list::const_iterator aCIt = theConstraints.begin(); - for (; aCIt != theConstraints.end(); ++aCIt) { - std::list aSubs = (*aCIt)->entities(); - std::list::const_iterator aSIt = aSubs.begin(); - for (; aSIt != aSubs.end(); ++aSIt) - if ((aFeature && (*aSIt)->isBase(aFeature)) || - (!aFeature && (*aSIt)->isBase(anAttribute))) - return true; - } - return false; -}