summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2004-07-08 01:49:00 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2004-07-08 01:49:00 (GMT)
commit93468eac728bee757446770f2b26de9cf7edcab6 (patch)
tree4f9d308a7e21117a7b0288bda54ebbaf906e0cdd /Objects
parentbdcb9410c20c49928c91b065ccbd115aa450e037 (diff)
downloadcpython-93468eac728bee757446770f2b26de9cf7edcab6.zip
cpython-93468eac728bee757446770f2b26de9cf7edcab6.tar.gz
cpython-93468eac728bee757446770f2b26de9cf7edcab6.tar.bz2
Remove unused macros in .c files
Diffstat (limited to 'Objects')
-rw-r--r--Objects/funcobject.c2
-rw-r--r--Objects/object.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index 76acf98..971eb1c 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -156,8 +156,6 @@ PyFunction_SetClosure(PyObject *op, PyObject *closure)
#define OFF(x) offsetof(PyFunctionObject, x)
-#define RR ()
-
static PyMemberDef func_memberlist[] = {
{"func_closure", T_OBJECT, OFF(func_closure),
RESTRICTED|READONLY},
diff --git a/Objects/object.c b/Objects/object.c
index 26149a7..470da60 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -704,8 +704,6 @@ default_3way_compare(PyObject *v, PyObject *w)
Py_uintptr_t)(w->ob_type)) ? -1 : 1;
}
-#define CHECK_TYPES(o) PyType_HasFeature((o)->ob_type, Py_TPFLAGS_CHECKTYPES)
-
/* Do a 3-way comparison, by hook or by crook. Return:
-2 for an exception (but see below);
-1 if v < w;