summaryrefslogtreecommitdiff
path: root/lib/dbwrap
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2020-12-21 14:37:12 +0100
committerJeremy Allison <jra@samba.org>2021-06-04 16:47:34 +0000
commit8089f5190cb17d519f2dee27a74eccb5b8560e8a (patch)
tree2d34cd73918babac18d500f445bae1ca85e30bd1 /lib/dbwrap
parent292abd2884ba80a5797135920f4b471d0b0faffe (diff)
downloadsamba-8089f5190cb17d519f2dee27a74eccb5b8560e8a.tar.gz
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 <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/dbwrap')
-rw-r--r--lib/dbwrap/dbwrap.c10
-rw-r--r--lib/dbwrap/dbwrap.h3
2 files changed, 0 insertions, 13 deletions
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,