summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-12-13 11:22:28 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-12-13 11:22:28 +0000
commitfb64313b8d37a7869c5489c8ee1bfad0c2c84c0f (patch)
tree88bef88a5297a5ccbb617b6249af67e28589af40
parent3caf4241af3a0fbee5948a217172990bb3c5e0b7 (diff)
downloaddbus-python-fb64313b8d37a7869c5489c8ee1bfad0c2c84c0f.tar.gz
Remove dbus_py_tp_richcompare_by_pointer, dbus_py_tp_hash_by_pointer
These turn out not to be used for anything. Spotted by Barry Warsaw. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
-rw-r--r--_dbus_bindings/dbus_bindings-internal.h4
-rw-r--r--_dbus_bindings/generic.c23
2 files changed, 0 insertions, 27 deletions
diff --git a/_dbus_bindings/dbus_bindings-internal.h b/_dbus_bindings/dbus_bindings-internal.h
index f137fe9..b8a8820 100644
--- a/_dbus_bindings/dbus_bindings-internal.h
+++ b/_dbus_bindings/dbus_bindings-internal.h
@@ -127,10 +127,6 @@ int dbus_py_unix_fd_get_fd(PyObject *self);
/* generic */
extern void dbus_py_take_gil_and_xdecref(PyObject *);
extern int dbus_py_immutable_setattro(PyObject *, PyObject *, PyObject *);
-extern PyObject *dbus_py_tp_richcompare_by_pointer(PyObject *,
- PyObject *,
- int);
-extern long dbus_py_tp_hash_by_pointer(PyObject *self);
extern PyObject *dbus_py_empty_tuple;
extern dbus_bool_t dbus_py_init_generic(void);
diff --git a/_dbus_bindings/generic.c b/_dbus_bindings/generic.c
index 05906ae..8894bb5 100644
--- a/_dbus_bindings/generic.c
+++ b/_dbus_bindings/generic.c
@@ -31,29 +31,6 @@
*/
PyObject *dbus_py_empty_tuple = NULL;
-PyObject *
-dbus_py_tp_richcompare_by_pointer(PyObject *self,
- PyObject *other,
- int op)
-{
- if (op == Py_EQ || op == Py_NE) {
- if (self == other) {
- return PyInt_FromLong(op == Py_EQ);
- }
- return PyInt_FromLong(op == Py_NE);
- }
- PyErr_SetString(PyExc_TypeError,
- "Instances of this type are not ordered");
- return NULL;
-}
-
-long
-dbus_py_tp_hash_by_pointer(PyObject *self)
-{
- long hash = (long)self;
- return (hash == -1L ? -2L : hash);
-}
-
int
dbus_py_immutable_setattro(PyObject *obj UNUSED,
PyObject *name UNUSED,