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/ntdb.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/ntdb/ntdb.h') diff --git a/lib/ntdb/ntdb.h b/lib/ntdb/ntdb.h index f0833b7261..f64b2f4a1b 100644 --- a/lib/ntdb/ntdb.h +++ b/lib/ntdb/ntdb.h @@ -567,17 +567,6 @@ enum NTDB_ERROR ntdb_check_(struct ntdb_context *ntdb, void *data), void *data); -/** - * ntdb_error - get the last error (not threadsafe) - * @ntdb: the ntdb context returned from ntdb_open() - * - * Returns the last error returned by a NTDB function. - * - * This makes porting from TDB easier, but note that the last error is not - * reliable in threaded programs. - */ -enum NTDB_ERROR ntdb_error(struct ntdb_context *ntdb); - /** * enum ntdb_summary_flags - flags for ntdb_summary. */ -- cgit