From 86ace5e562b57384cf71050012964b65249fd7b5 Mon Sep 17 00:00:00 2001 From: Alessio Quaglino Date: Mon, 3 Feb 2025 03:29:39 -0800 Subject: [PATCH] Remove body.spec() function from the Python API We can only use the MjSpec wrapper, not the raw::MjSpec struct in the API. PiperOrigin-RevId: 722589064 Change-Id: I007150f92738487f27211d7435e328cab86214f7 --- python/mujoco/specs.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/python/mujoco/specs.cc b/python/mujoco/specs.cc index c26061de..acea51fe 100644 --- a/python/mujoco/specs.cc +++ b/python/mujoco/specs.cc @@ -810,12 +810,6 @@ PYBIND11_MODULE(_specs, m) { return FindAllImpl(self, mjOBJ_FRAME, false); }, py::return_value_policy::reference_internal); - mjsBody.def( - "spec", - [](raw::MjsBody& self) -> raw::MjSpec* { - return mjs_getSpec(self.element); - }, - py::return_value_policy::reference_internal); mjsBody.def_property_readonly( "parent", [](raw::MjsBody& self) -> raw::MjsBody* {