This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-ffi.git


The following commit(s) were added to refs/heads/main by this push:
     new c86235c  refactor: Remove Unused `OBJECT_INDEX` from Cython (#28)
c86235c is described below

commit c86235cd905c0c384eff0f4b899176704f72de10
Author: Junru Shao <[email protected]>
AuthorDate: Thu Sep 18 20:05:40 2025 -0700

    refactor: Remove Unused `OBJECT_INDEX` from Cython (#28)
---
 python/tvm_ffi/cython/object.pxi | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/python/tvm_ffi/cython/object.pxi b/python/tvm_ffi/cython/object.pxi
index f47018c..08cfd54 100644
--- a/python/tvm_ffi/cython/object.pxi
+++ b/python/tvm_ffi/cython/object.pxi
@@ -229,8 +229,6 @@ class PyNativeObject:
 
 """Maps object type index to its constructor"""
 cdef list OBJECT_TYPE = []
-"""Maps object type to its type index"""
-cdef dict OBJECT_INDEX = {}
 
 
 def _register_object_by_index(int index, object cls):
@@ -239,7 +237,6 @@ def _register_object_by_index(int index, object cls):
     while len(OBJECT_TYPE) <= index:
         OBJECT_TYPE.append(None)
     OBJECT_TYPE[index] = cls
-    OBJECT_INDEX[cls] = index
 
 
 def _object_type_key_to_index(str type_key):

Reply via email to