diff --git a/Sofa/Component/LinearSolver/Ordering/src/sofa/component/linearsolver/ordering/OrderingMethodAccessor.h b/Sofa/Component/LinearSolver/Ordering/src/sofa/component/linearsolver/ordering/OrderingMethodAccessor.h index cf11f05571d..ce5ac5aa2ce 100644 --- a/Sofa/Component/LinearSolver/Ordering/src/sofa/component/linearsolver/ordering/OrderingMethodAccessor.h +++ b/Sofa/Component/LinearSolver/Ordering/src/sofa/component/linearsolver/ordering/OrderingMethodAccessor.h @@ -87,43 +87,6 @@ class OrderingMethodAccessor : public TBase } } - void parse(sofa::core::objectmodel::BaseObjectDescription* arg) override - { - Inherit1::parse(arg); - - //To remove for v24.12: - if (arg->getAttribute("ordering")) - { - //map storing the correspondence between the ordering method name - //as a Data, and its associated component - static const std::map orderingMethodComponentsMap - { - {"Natural", "NaturalOrderingMethod"}, - {"AMD", "AMDOrderingMethod"}, - {"COLAMD", "COLAMDOrderingMethod"}, - {"Metis", "MetisOrderingMethod"} - }; - - std::stringstream message; - message << "The Data 'ordering' is deprecated. Instead use a " - "component of type OrderingMethod. The list of available methods are: " - << core::ObjectFactory::getInstance()->listClassesDerivedFrom(); - - const std::string methodName = arg->getAttribute("ordering"); - const auto it = orderingMethodComponentsMap.find(methodName); - if (it != orderingMethodComponentsMap.end()) - { - desiredMethod = it->second; - - message << ". According to the value of the Data 'ordering', the " - "object factory will try to instantiate the component '" - << desiredMethod << "'."; - } - - msg_warning() << message.str(); - } - } - private: void setupCreatedOrderingMethod(core::behavior::BaseOrderingMethod* createdOrderingMethod)