summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicky Nance <ricky.nance@weaubleau.k12.mo.us>2012-02-10 00:43:40 -0600
committerAndrew Bartlett <abartlet@samba.org>2012-02-25 03:51:37 +0100
commit2f7e7153020167ff695515001cec00f858e7754f (patch)
tree74ce5b5c75429d2ed874e0022b11aa8714571f0a
parent8a22ccadd5884cbb25a355b52ac9d1fc292a289d (diff)
downloadsamba-2f7e7153020167ff695515001cec00f858e7754f.tar.gz
samba-2f7e7153020167ff695515001cec00f858e7754f.tar.bz2
samba-2f7e7153020167ff695515001cec00f858e7754f.zip
s4-lib: Remove unused samdb_msg_set_value()
Found by callcatcher. Ricky Nance
-rw-r--r--source4/dsdb/common/util.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index 6a26b47409..72321217ea 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -985,21 +985,6 @@ int samdb_msg_add_parameters(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, s
}
/*
- 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
*
* The issue here is that we have not yet first cast to int32_t explicitly,