Skip to content

Commit 1537352

Browse files
[DynamicPinocchio] Remove deprecated method.
1 parent c9e9414 commit 1537352

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

include/sot/dynamic-pinocchio/dynamic-pinocchio.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,6 @@ class SOTDYNAMIC_EXPORT DynamicPinocchio : public dg::Entity {
182182

183183
void createData();
184184

185-
/// \deprecated this function does nothing. This class has its own
186-
/// pinocchio::Data object, which can be access with \ref getData.
187-
void setData(pinocchio::Data*) SOT_DYNAMIC_PINOCCHIO_DEPRECATED;
188-
189185
pinocchio::Model* getModel() { return m_model; };
190186

191187
pinocchio::Data* getData() { return m_data.get(); };

src/dynamic-python-module-py.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ BOOST_PYTHON_MODULE(wrap) {
2020
bp::make_function(&dgs::DynamicPinocchio::setModel))
2121
.add_property("data",
2222
bp::make_function(&dgs::DynamicPinocchio::getData,
23-
reference_existing_object()),
24-
bp::make_function(&dgs::DynamicPinocchio::setData))
23+
reference_existing_object()))
2524
.def("setModel", &dgs::DynamicPinocchio::setModel)
26-
.def("createData", &dgs::DynamicPinocchio::createData)
27-
.def("setData", &dgs::DynamicPinocchio::setData);
25+
.def("createData", &dgs::DynamicPinocchio::createData);
2826
}

src/sot-dynamic-pinocchio.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,6 @@ void DynamicPinocchio::setModel(pinocchio::Model* modelPtr) {
308308
createData();
309309
}
310310

311-
void DynamicPinocchio::setData(pinocchio::Data*) {}
312-
313311
void DynamicPinocchio::createData() {
314312
m_data.reset(new pinocchio::Data(*m_model));
315313
}

0 commit comments

Comments
 (0)