Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old deprecation #146

Merged
merged 1 commit into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 >()
;
Loading