From f5e9ed1ea965827f29fe0fa77a32e09737e51b45 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 18 Jun 2012 22:30:27 +0930 Subject: ntdb: remove ntdb_error() It was a hack to make compatibility easier. Since we're not doing that, it can go away: all callers must use the return value now. Signed-off-by: Rusty Russell --- lib/ntdb/pyntdb.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/ntdb/pyntdb.c') diff --git a/lib/ntdb/pyntdb.c b/lib/ntdb/pyntdb.c index 1f80e4227b..1037f3c004 100644 --- a/lib/ntdb/pyntdb.c +++ b/lib/ntdb/pyntdb.c @@ -275,8 +275,6 @@ static PyObject *obj_has_key(PyNtdbObject *self, PyObject *args) key = PyString_AsNtdb_Data(py_key); if (ntdb_exists(self->ctx, key)) return Py_True; - if (ntdb_error(self->ctx) != NTDB_ERR_NOEXIST) - PyErr_NTDB_ERROR_IS_ERR_RAISE(ntdb_error(self->ctx)); return Py_False; } -- cgit