From: Volker Lendecke Date: Mon, 21 Dec 2020 13:37:12 +0000 (+0100) Subject: dbwrap: Remove unused dbwrap_try_fetch_locked() X-Git-Tag: tevent-0.11.0~667 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8089f5190cb17d519f2dee27a74eccb5b8560e8a;p=thirdparty%2Fsamba.git dbwrap: Remove unused dbwrap_try_fetch_locked() Small simplification, this has not been used since 2014 when the notifyd went in. Can easily be added if needed again. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/lib/dbwrap/dbwrap.c b/lib/dbwrap/dbwrap.c index 735ed169690..cc685a2fa69 100644 --- a/lib/dbwrap/dbwrap.c +++ b/lib/dbwrap/dbwrap.c @@ -266,16 +266,6 @@ struct db_record *dbwrap_fetch_locked(struct db_context *db, db->fetch_locked); } -struct db_record *dbwrap_try_fetch_locked(struct db_context *db, - TALLOC_CTX *mem_ctx, - TDB_DATA key) -{ - return dbwrap_fetch_locked_internal( - db, mem_ctx, key, - db->try_fetch_locked - ? db->try_fetch_locked : db->fetch_locked); -} - struct db_context *dbwrap_record_get_db(struct db_record *rec) { return rec->db; diff --git a/lib/dbwrap/dbwrap.h b/lib/dbwrap/dbwrap.h index 0069353fae5..9b8bf811ca6 100644 --- a/lib/dbwrap/dbwrap.h +++ b/lib/dbwrap/dbwrap.h @@ -74,9 +74,6 @@ NTSTATUS dbwrap_record_delete(struct db_record *rec); struct db_record *dbwrap_fetch_locked(struct db_context *db, TALLOC_CTX *mem_ctx, TDB_DATA key); -struct db_record *dbwrap_try_fetch_locked(struct db_context *db, - TALLOC_CTX *mem_ctx, - TDB_DATA key); struct db_context *dbwrap_record_get_db(struct db_record *rec); void dbwrap_lock_order_lock(const char *db_name,