summaryrefslogtreecommitdiff
path: root/simplejson/_speedups.c
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2017-05-20 12:22:21 -0700
committerGitHub <noreply@github.com>2017-05-20 12:22:21 -0700
commit02168b6319a508558129ece2354906d0cd6b170b (patch)
treeffcd65e11f3c0e4023253cfa44e1646a8a308c03 /simplejson/_speedups.c
parent31e85c0cb7eae5d6e161a6f10ed56578b4b4ae9e (diff)
parentb715bfee8f04d7b46fba62ec9d9ab95fe1a61ffd (diff)
downloadsimplejson-02168b6319a508558129ece2354906d0cd6b170b.tar.gz
Merge pull request #168 from simplejson/no-py2.4
Remove remnants of Python 2.4 support.
Diffstat (limited to 'simplejson/_speedups.c')
-rw-r--r--simplejson/_speedups.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c
index 291f56e..75bd3c4 100644
--- a/simplejson/_speedups.c
+++ b/simplejson/_speedups.c
@@ -68,19 +68,6 @@ json_PyOS_string_to_double(const char *s, char **endptr, PyObject *overflow_exce
#endif
#endif /* PY_VERSION_HEX < 0x02060000 */
-#if PY_VERSION_HEX < 0x02050000
-#if !defined(PY_SSIZE_T_MIN)
-typedef int Py_ssize_t;
-#define PY_SSIZE_T_MAX INT_MAX
-#define PY_SSIZE_T_MIN INT_MIN
-#define PyInt_FromSsize_t PyInt_FromLong
-#define PyInt_AsSsize_t PyInt_AsLong
-#endif
-#if !defined(Py_IS_FINITE)
-#define Py_IS_FINITE(X) (!Py_IS_INFINITY(X) && !Py_IS_NAN(X))
-#endif
-#endif /* PY_VERSION_HEX < 0x02050000 */
-
#ifdef __GNUC__
#define UNUSED __attribute__((__unused__))
#else