Quellcode durchsuchen

Drop unnecessary version compatibility code.

Jelmer Vernooij vor 8 Jahren
Ursprung
Commit
51a89e7ded
2 geänderte Dateien mit 0 neuen und 12 gelöschten Zeilen
  1. 0 8
      dulwich/_diff_tree.c
  2. 0 4
      dulwich/_objects.c

+ 0 - 8
dulwich/_diff_tree.c

@@ -25,14 +25,6 @@
 typedef unsigned short mode_t;
 #endif
 
-#if (PY_VERSION_HEX < 0x02050000)
-typedef int Py_ssize_t;
-#endif
-
-#if (PY_VERSION_HEX < 0x02060000)
-#define Py_SIZE(ob)             (((PyVarObject*)(ob))->ob_size)
-#endif
-
 #if PY_MAJOR_VERSION >= 3
 #define PyInt_FromLong PyLong_FromLong
 #define PyInt_AsLong PyLong_AsLong

+ 0 - 4
dulwich/_objects.c

@@ -22,10 +22,6 @@
 #include <stdlib.h>
 #include <sys/stat.h>
 
-#if (PY_VERSION_HEX < 0x02050000)
-typedef int Py_ssize_t;
-#endif
-
 #if PY_MAJOR_VERSION >= 3
 #define PyInt_Check(obj) 0
 #define PyInt_CheckExact(obj) 0