summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorRicky Nance <ricky.nance@weaubleau.k12.mo.us>2012-02-10 00:36:55 -0600
committerAndrew Bartlett <abartlet@samba.org>2012-02-25 03:51:37 +0100
commitb136687d1f536cf2566a78b5fda51aff8cf69536 (patch)
treea9163e76d63683713cbb27781b3032c7da1cb9c4 /source4
parent872fb6a3e0c6d95b7ff754d1a277d24d6a51ecaf (diff)
downloadsamba-b136687d1f536cf2566a78b5fda51aff8cf69536.tar.gz
samba-b136687d1f536cf2566a78b5fda51aff8cf69536.tar.bz2
samba-b136687d1f536cf2566a78b5fda51aff8cf69536.zip
s4-lib: Remove unused samdb_msg_set_int()
Found by callcatcher Ricky Nance
Diffstat (limited to 'source4')
-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 814faa607c..2647b00257 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -1015,21 +1015,6 @@ int samdb_msg_set_string(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struc
}
/*
- * 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
*
* The issue here is that we have not yet first cast to int32_t explicitly,