Skip to content

Commit

Permalink
Remove old deprecation (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger authored May 10, 2024
1 parent ec247fb commit 49c4591
Showing 1 changed file with 0 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,31 +99,3 @@ template class SOFA_BEAMADAPTER_API AdaptiveBeamSlidingConstraint<Rigid3Types>;
///////////////////////////////////////////////////////////////////////////////////////////////////

} // namespace sofa::component::constraintset::_adaptiveBeamSlidingConstraint_


///////////////////////////////// DEPRECATION MANAGEMENT FOR BACKWARD COMPATIBILITY ///////////////////
class AdaptiveBeamConstraint : public DeprecatedComponent
{
public:
/// Pre-construction check method called by ObjectFactory.
template<class T>
static bool canCreate(T* obj, BaseContext* context, BaseObjectDescription* arg)
{
SOFA_UNUSED(obj) ;
SOFA_UNUSED(context) ;
SOFA_UNUSED(arg) ;

msg_warning("AdaptiveBeamConstraint") << "AdaptiveBeamConstraint is a BeamAdapter v1.0 feature that has been replaced "
"by AdaptiveBeamSlidingConstraint. \n "
"To remove this error message you either need to: \n "
" - replace AdaptiveBeamConstraint with AdaptiveBeamSlidingConstraint\n "
" - or use the BeamAdapter plugin v1.0 \n ";
return false;
}
} ;

// Registering the component
// see: http://wiki.sofa-framework.org/wiki/ObjectFactory
static int AdaptiveBeamConstraintClass = RegisterObject("AdaptiveBeamConstraint is now a deprecated and should be replaced with AdaptiveBeamSlidingConstraint")
.add< AdaptiveBeamConstraint >()
;

0 comments on commit 49c4591

Please sign in to comment.