s4:dsdb/common/util.c - remove "samdb_find_or_add_value"
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Wed, 23 Feb 2011 09:18:03 +0000 (10:18 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 1 Mar 2011 05:29:03 +0000 (06:29 +0100)
This isn't used anymore.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/common/util.c

index f87ed871c0308f21e570b953781df5cba6ddb219..fb742f92bd509ba5711c31ee08723fd0558f2f00 100644 (file)
@@ -699,14 +699,6 @@ struct ldb_message_element *samdb_find_attribute(struct ldb_context *ldb,
        return NULL;
 }
 
-int samdb_find_or_add_value(struct ldb_context *ldb, struct ldb_message *msg, const char *name, const char *set_value)
-{
-       if (samdb_find_attribute(ldb, msg, name, set_value) == NULL) {
-               return ldb_msg_add_string(msg, name, set_value);
-       }
-       return LDB_SUCCESS;
-}
-
 int samdb_find_or_add_attribute(struct ldb_context *ldb, struct ldb_message *msg, const char *name, const char *set_value)
 {
        struct ldb_message_element *el;