2
0
rdb 1 жил өмнө
parent
commit
0c1a0799b1

+ 0 - 22
dtool/src/interrogatedb/py_compat.h

@@ -285,28 +285,6 @@ ALWAYS_INLINE PyObject *Py_XNewRef(PyObject *obj) {
 }
 #endif
 
-/* Python 3.10 */
-
-#if PY_VERSION_HEX < 0x030A0000
-INLINE int PyModule_AddObjectRef(PyObject *module, const char *name, PyObject *value) {
-  int ret = PyModule_AddObject(module, name, value);
-  if (ret == 0) {
-    Py_INCREF(value);
-  }
-  return ret;
-}
-
-ALWAYS_INLINE PyObject *Py_NewRef(PyObject *obj) {
-  Py_INCREF(obj);
-  return obj;
-}
-
-ALWAYS_INLINE PyObject *Py_XNewRef(PyObject *obj) {
-  Py_XINCREF(obj);
-  return obj;
-}
-#endif
-
 /* Python 3.12 */
 
 #if PY_VERSION_HEX < 0x030C0000