s4-lib: Remove unused samdb_msg_set_int()
authorRicky Nance <ricky.nance@weaubleau.k12.mo.us>
Fri, 10 Feb 2012 06:36:55 +0000 (00:36 -0600)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 25 Feb 2012 02:51:37 +0000 (03:51 +0100)
Found by callcatcher

Ricky Nance

source4/dsdb/common/util.c

index 814faa607c90635e12bb830ee29efdb9ae27c754..2647b0025713cf89af575d7c958dde9144494e46 100644 (file)
@@ -1014,21 +1014,6 @@ int samdb_msg_set_string(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struc
        return ldb_msg_add_string(msg, attr_name, str);
 }
 
-/*
- * sets a signed integer in a message
- */
-int samdb_msg_set_int(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx,
-                     struct ldb_message *msg, const char *attr_name, int v)
-{
-       struct ldb_message_element *el;
-
-       el = ldb_msg_find_element(msg, attr_name);
-       if (el) {
-               el->num_values = 0;
-       }
-       return samdb_msg_add_int(sam_ldb, mem_ctx, msg, attr_name, v);
-}
-
 /*
  * Sets an unsigned int element in a message
  *