Skip to content

Commit 49c4591

Browse files
authored
Remove old deprecation (#146)
1 parent ec247fb commit 49c4591

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

src/BeamAdapter/component/constraint/AdaptiveBeamSlidingConstraint.cpp

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -99,31 +99,3 @@ template class SOFA_BEAMADAPTER_API AdaptiveBeamSlidingConstraint<Rigid3Types>;
9999
///////////////////////////////////////////////////////////////////////////////////////////////////
100100

101101
} // namespace sofa::component::constraintset::_adaptiveBeamSlidingConstraint_
102-
103-
104-
///////////////////////////////// DEPRECATION MANAGEMENT FOR BACKWARD COMPATIBILITY ///////////////////
105-
class AdaptiveBeamConstraint : public DeprecatedComponent
106-
{
107-
public:
108-
/// Pre-construction check method called by ObjectFactory.
109-
template<class T>
110-
static bool canCreate(T* obj, BaseContext* context, BaseObjectDescription* arg)
111-
{
112-
SOFA_UNUSED(obj) ;
113-
SOFA_UNUSED(context) ;
114-
SOFA_UNUSED(arg) ;
115-
116-
msg_warning("AdaptiveBeamConstraint") << "AdaptiveBeamConstraint is a BeamAdapter v1.0 feature that has been replaced "
117-
"by AdaptiveBeamSlidingConstraint. \n "
118-
"To remove this error message you either need to: \n "
119-
" - replace AdaptiveBeamConstraint with AdaptiveBeamSlidingConstraint\n "
120-
" - or use the BeamAdapter plugin v1.0 \n ";
121-
return false;
122-
}
123-
} ;
124-
125-
// Registering the component
126-
// see: http://wiki.sofa-framework.org/wiki/ObjectFactory
127-
static int AdaptiveBeamConstraintClass = RegisterObject("AdaptiveBeamConstraint is now a deprecated and should be replaced with AdaptiveBeamSlidingConstraint")
128-
.add< AdaptiveBeamConstraint >()
129-
;

0 commit comments

Comments
 (0)