diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-18 22:30:27 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-19 05:38:06 +0200 |
commit | f5e9ed1ea965827f29fe0fa77a32e09737e51b45 (patch) | |
tree | e8d6d817d775413f29885416b8aecd8e385146d2 /lib/ntdb/pyntdb.c | |
parent | 16cc345d4f84367e70e133200f7aa335c2aae8c6 (diff) | |
download | samba-f5e9ed1ea965827f29fe0fa77a32e09737e51b45.tar.gz samba-f5e9ed1ea965827f29fe0fa77a32e09737e51b45.tar.bz2 samba-f5e9ed1ea965827f29fe0fa77a32e09737e51b45.zip |
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 <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/ntdb/pyntdb.c')
-rw-r--r-- | lib/ntdb/pyntdb.c | 2 |
1 files changed, 0 insertions, 2 deletions
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; } |