From 8089f5190cb17d519f2dee27a74eccb5b8560e8a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 21 Dec 2020 14:37:12 +0100 Subject: 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 --- lib/dbwrap/dbwrap.c | 10 ---------- lib/dbwrap/dbwrap.h | 3 --- 2 files changed, 13 deletions(-) (limited to 'lib/dbwrap') 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, -- cgit v1.2.1