summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-02-01 12:13:56 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-02-01 12:13:56 (GMT)
commitf02e0aaafd2476948047f0ce904af947f02d18ea (patch)
tree724366997190a0acf829f65a4f1e96d82c060889 /Objects/abstract.c
parent211c6258294bf683935bff73a61ce3dd84070988 (diff)
downloadcpython-f02e0aaafd2476948047f0ce904af947f02d18ea.zip
cpython-f02e0aaafd2476948047f0ce904af947f02d18ea.tar.gz
cpython-f02e0aaafd2476948047f0ce904af947f02d18ea.tar.bz2
Issue #1717: remove the cmp builtin function, the C-API functions
PyObject_Cmp, PyObject_Compare, and various support functions.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 1f988ec..e42008a 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -27,22 +27,6 @@ null_error(void)
/* Operations on any object */
-int
-PyObject_Cmp(PyObject *o1, PyObject *o2, int *result)
-{
- int r;
-
- if (o1 == NULL || o2 == NULL) {
- null_error();
- return -1;
- }
- r = PyObject_Compare(o1, o2);
- if (PyErr_Occurred())
- return -1;
- *result = r;
- return 0;
-}
-
PyObject *
PyObject_Type(PyObject *o)
{