From 7e09a5fb6c2db866b3fc7e4d27cdbbe3ac795cc8 Mon Sep 17 00:00:00 2001 From: Dwayne Litzenberger Date: Sun, 14 Jul 2013 16:10:45 -0700 Subject: Py3k cleanup: Remove unused is_ALGobject macro --- src/block_template.c | 2 -- src/hash_template.c | 2 -- src/stream_template.c | 2 -- 3 files changed, 6 deletions(-) (limited to 'src') diff --git a/src/block_template.c b/src/block_template.c index 0e7442a..6a1ec93 100644 --- a/src/block_template.c +++ b/src/block_template.c @@ -69,12 +69,10 @@ typedef struct */ #ifdef IS_PY3K static PyTypeObject ALGtype; -#define is_ALGobject(v) (Py_TYPE(v) == &ALGtype) #define PyInt_CheckExact PyLong_CheckExact #define PyInt_AS_LONG PyLong_AS_LONG #else staticforward PyTypeObject ALGtype; -#define is_ALGobject(v) ((v)->ob_type == &ALGtype) #endif static ALGobject * diff --git a/src/hash_template.c b/src/hash_template.c index 249040f..cc66544 100644 --- a/src/hash_template.c +++ b/src/hash_template.c @@ -48,10 +48,8 @@ typedef struct { */ #ifdef IS_PY3K static PyTypeObject ALGtype; -#define is_ALGobject(v) (Py_TYPE(v) == &ALGtype) #else staticforward PyTypeObject ALGtype; -#define is_ALGobject(v) ((v)->ob_type == &ALGtype) #endif static ALGobject * diff --git a/src/stream_template.c b/src/stream_template.c index 5d13650..5456664 100644 --- a/src/stream_template.c +++ b/src/stream_template.c @@ -55,10 +55,8 @@ typedef struct */ #ifdef IS_PY3K static PyTypeObject ALGtype; -#define is_ALGobject(v) (Py_TYPE(v) == &ALGtype) #else staticforward PyTypeObject ALGtype; -#define is_ALGobject(v) ((v)->ob_type == &ALGtype) #endif static ALGobject * -- cgit v1.2.1