diff options
author | Ricky Nance <ricky.nance@weaubleau.k12.mo.us> | 2012-02-10 00:41:44 -0600 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-02-25 03:51:37 +0100 |
commit | 8a22ccadd5884cbb25a355b52ac9d1fc292a289d (patch) | |
tree | 4fc242c2a565449802b7805dd0989eab38eb05f5 | |
parent | b136687d1f536cf2566a78b5fda51aff8cf69536 (diff) | |
download | samba-8a22ccadd5884cbb25a355b52ac9d1fc292a289d.tar.gz samba-8a22ccadd5884cbb25a355b52ac9d1fc292a289d.tar.bz2 samba-8a22ccadd5884cbb25a355b52ac9d1fc292a289d.zip |
s4-lib: Remove unused samdb_msg_set_string()
Found by callcatcher.
Ricky Nance
-rw-r--r-- | source4/dsdb/common/util.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 2647b00257..6a26b47409 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -1000,21 +1000,6 @@ int samdb_msg_set_value(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct } /* - set a string element in a message -*/ -int samdb_msg_set_string(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct ldb_message *msg, - const char *attr_name, const char *str) -{ - struct ldb_message_element *el; - - el = ldb_msg_find_element(msg, attr_name); - if (el) { - el->num_values = 0; - } - return ldb_msg_add_string(msg, attr_name, str); -} - -/* * Sets an unsigned int element in a message * * The issue here is that we have not yet first cast to int32_t explicitly, |