1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

s4-lib: Remove unused samdb_msg_set_value()

Found by callcatcher.

Ricky Nance
This commit is contained in:
Ricky Nance 2012-02-10 00:43:40 -06:00 committed by Andrew Bartlett
parent 8a22ccadd5
commit 2f7e715302

View File

@ -984,21 +984,6 @@ int samdb_msg_add_parameters(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, s
return ldb_msg_add_value(msg, attr_name, &val, NULL);
}
/*
sets a general value element to a message
*/
int samdb_msg_set_value(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct ldb_message *msg,
const char *attr_name, const struct ldb_val *val)
{
struct ldb_message_element *el;
el = ldb_msg_find_element(msg, attr_name);
if (el) {
el->num_values = 0;
}
return ldb_msg_add_value(msg, attr_name, val, NULL);
}
/*
* Sets an unsigned int element in a message
*