From: Gary Lockyer Date: Wed, 13 Feb 2019 20:19:21 +0000 (+1300) Subject: s4 dsdb util: remove samdb_search_count X-Git-Tag: ldb-1.6.1~133 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=f0e96d21b55c03f4610f4a2013cf7fdf2a50e29b;p=sharpe%2Fsamba-autobuild%2F.git s4 dsdb util: remove samdb_search_count All the uses have been replaced with calls to dsdb_domain_count, so it is no longer needed. Signed-off-by: Gary Lockyer Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index e2ed8405c93..92ad11c8372 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -202,26 +202,6 @@ struct dom_sid *samdb_search_dom_sid(struct ldb_context *sam_ldb, return sid; } -/* - return the count of the number of records in the sam matching the query -*/ -int samdb_search_count(struct ldb_context *sam_ldb, - TALLOC_CTX *mem_ctx, - struct ldb_dn *basedn, - const char *format, ...) _PRINTF_ATTRIBUTE(4,5) -{ - va_list ap; - const char *attrs[] = { NULL }; - int ret; - - va_start(ap, format); - ret = gendb_search_v(sam_ldb, mem_ctx, basedn, NULL, attrs, format, ap); - va_end(ap); - - return ret; -} - - /* search the sam for a single integer attribute in exactly 1 record */