Skip to content

Commit 4ec1a9e

Browse files
alimuldalcopybara-github
authored andcommitted
Delete unused globals in mujoco/wrapper/core.py
PiperOrigin-RevId: 485335378 Change-Id: Icbb01086db33aef2bcf199df89e8b6069e26974c
1 parent db8b87a commit 4ec1a9e

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

dm_control/mujoco/wrapper/core.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import contextlib
1919
import copy
2020
import ctypes
21-
import threading
2221
import weakref
2322

2423
from absl import logging
@@ -31,17 +30,12 @@
3130

3231
# Unused internal import: resources.
3332

34-
_NULL = b"\00"
3533
_FAKE_BINARY_FILENAME = "model.mjb"
3634

3735
_CONTACT_ID_OUT_OF_RANGE = (
3836
"`contact_id` must be between 0 and {max_valid} (inclusive), got: {actual}."
3937
)
4038

41-
# Global cache used to store finalizers for freeing ctypes pointers.
42-
# Contains {pointer_address: weakref_object} pairs.
43-
_FINALIZERS = {}
44-
4539

4640
class Error(Exception):
4741
"""Base class for MuJoCo exceptions."""
@@ -52,9 +46,6 @@ class Error(Exception):
5246
raise Error("MuJoCo library version ({0}) does not match header version "
5347
"({1})".format(mujoco.mjVERSION_HEADER, mujoco.mj_version()))
5448

55-
_REGISTERED = False
56-
_REGISTRATION_LOCK = threading.Lock()
57-
5849
# This is used to keep track of the `MJMODEL` pointer that was most recently
5950
# loaded by `_get_model_ptr_from_xml`. Only this model can be saved to XML.
6051
_LAST_PARSED_MODEL_PTR = None

0 commit comments

Comments
 (0)