diff options
author | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-07-14 16:10:45 -0700 |
---|---|---|
committer | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-07-14 19:14:35 -0700 |
commit | 7e09a5fb6c2db866b3fc7e4d27cdbbe3ac795cc8 (patch) | |
tree | da7d43d4b2854a3f660b52321de1b54c517fb736 /src | |
parent | a5639ad034ddc5521ff4d399d74fc069f3cbf592 (diff) | |
download | pycrypto-7e09a5fb6c2db866b3fc7e4d27cdbbe3ac795cc8.tar.gz |
Py3k cleanup: Remove unused is_ALGobject macro
Diffstat (limited to 'src')
-rw-r--r-- | src/block_template.c | 2 | ||||
-rw-r--r-- | src/hash_template.c | 2 | ||||
-rw-r--r-- | src/stream_template.c | 2 |
3 files changed, 0 insertions, 6 deletions
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 * |