summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-17 10:29:46 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-17 10:29:46 +0200
commit39bd4ce92055f79e55e2f228537324d7f1401cc0 (patch)
tree168eecffffb66ae44f925dc050f5ffe52dc18afd
parente1078d2de2a2462fb24d3d4b5e2643290e663c6c (diff)
downloadsamba-39bd4ce92055f79e55e2f228537324d7f1401cc0.tar.gz
samba-39bd4ce92055f79e55e2f228537324d7f1401cc0.tar.bz2
samba-39bd4ce92055f79e55e2f228537324d7f1401cc0.zip
s4:lib/util/util_ldb.c - remove unused "gendb_add_ldif" call
-rw-r--r--lib/util/util_ldb.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/util/util_ldb.c b/lib/util/util_ldb.c
index 5e50fddf1c..738d50052d 100644
--- a/lib/util/util_ldb.c
+++ b/lib/util/util_ldb.c
@@ -110,20 +110,3 @@ int gendb_search_dn(struct ldb_context *ldb,
return gendb_search(ldb, mem_ctx, dn, res, attrs, NULL);
}
-/*
- setup some initial ldif in a ldb
-*/
-int gendb_add_ldif(struct ldb_context *ldb, const char *ldif_string)
-{
- struct ldb_ldif *ldif;
- const char *s = ldif_string;
- int ret;
- while (s && *s != '\0') {
- ldif = ldb_ldif_read_string(ldb, &s);
- if (ldif == NULL) return -1;
- ret = ldb_add(ldb, ldif->msg);
- talloc_free(ldif);
- }
- return ret;
-}
-