From 756240f68dda2cfe94535be102e911fa314a7052 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 11 Jan 2025 06:15:14 +0530 Subject: [PATCH] Remove unused code --- kitty/data-types.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kitty/data-types.h b/kitty/data-types.h index e71bb9683..88791ddbc 100644 --- a/kitty/data-types.h +++ b/kitty/data-types.h @@ -56,10 +56,6 @@ static inline void cleanup_free(void *p) { free(*(void**)p); } static inline void cleanup_decref(PyObject **p) { Py_CLEAR(*p); } #define RAII_PyObject(name, initializer) __attribute__((cleanup(cleanup_decref))) PyObject *name = initializer #define RAII_PY_BUFFER(name) __attribute__((cleanup(PyBuffer_Release))) Py_buffer name = {0} -#if PY_VERSION_HEX < 0x030a0000 -static inline PyObject* Py_NewRef(PyObject *o) { Py_INCREF(o); return o; } -static inline PyObject* Py_XNewRef(PyObject *o) { Py_XINCREF(o); return o; } -#endif typedef unsigned long long id_type; typedef uint32_t char_type;