Skip to content

Commit

Permalink
Remove deprecated API from python binding
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters committed Jun 20, 2022
1 parent a1429f7 commit 70023d6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions python/src/sdf/pyJoint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <gz/utils/SuppressWarning.hh>

#include "sdf/Joint.hh"
#include "sdf/Sensor.hh"

Expand All @@ -36,7 +34,6 @@ namespace python
void defineJoint(pybind11::object module)
{
pybind11::class_<sdf::Joint> jointModule(module, "Joint");
GZ_UTILS_WARN_IGNORE__DEPRECATED_DECLARATION
jointModule
.def(pybind11::init<>())
.def(pybind11::init<sdf::Joint>())
Expand All @@ -56,14 +53,6 @@ void defineJoint(pybind11::object module)
"Get the name of this joint's child frame.")
.def("set_child_name", &sdf::Joint::SetChildName,
"Set the name of the child frame.")
.def("parent_link_name", &sdf::Joint::ParentLinkName,
"Get the name of this joint's parent link.")
.def("set_parent_link_name", &sdf::Joint::SetParentLinkName,
"Set the name of the parent link.")
.def("child_link_name", &sdf::Joint::ChildLinkName,
"Get the name of this joint's child link.")
.def("set_child_link_name", &sdf::Joint::SetChildLinkName,
"Set the name of the child link")
.def("resolve_child_link",
[](const sdf::Joint &self)
{
Expand Down Expand Up @@ -147,7 +136,6 @@ void defineJoint(pybind11::object module)
.value("REVOLUTE2", sdf::JointType::REVOLUTE2)
.value("SCREW", sdf::JointType::SCREW)
.value("UNIVERSAL", sdf::JointType::UNIVERSAL);
GZ_UTILS_WARN_RESUME__DEPRECATED_DECLARATION
}
} // namespace python
} // namespace SDF_VERSION_NAMESPACE
Expand Down

0 comments on commit 70023d6

Please sign in to comment.