From 93944ea90069df5379993f5c186ffd68e166f1c4 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 2 Jan 2013 14:55:36 +1100 Subject: dsdb-acl: Remove unused get_oc_guid_from_message() Reviewed-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source4/dsdb/samdb/ldb_modules/acl.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'source4') diff --git a/source4/dsdb/samdb/ldb_modules/acl.c b/source4/dsdb/samdb/ldb_modules/acl.c index 2a1a8538ac..0a244f9bef 100644 --- a/source4/dsdb/samdb/ldb_modules/acl.c +++ b/source4/dsdb/samdb/ldb_modules/acl.c @@ -964,25 +964,6 @@ static int acl_check_password_rights(TALLOC_CTX *mem_ctx, return ret; } -static const struct GUID *get_oc_guid_from_message(const struct dsdb_schema *schema, - struct ldb_message *msg) -{ - struct ldb_message_element *oc_el; - const struct dsdb_class *object_class; - - oc_el = ldb_msg_find_element(msg, "objectClass"); - if (!oc_el) { - return NULL; - } - - object_class = dsdb_get_last_structural_class(schema, oc_el); - if (object_class == NULL) { - return NULL; - } - - return &object_class->schemaIDGUID; -} - static int acl_modify(struct ldb_module *module, struct ldb_request *req) { -- cgit