dsdb-acl: Remove unused get_oc_guid_from_message()
authorAndrew Bartlett <abartlet@samba.org>
Wed, 2 Jan 2013 03:55:36 +0000 (14:55 +1100)
committerStefan Metzmacher <metze@samba.org>
Mon, 21 Jan 2013 15:12:45 +0000 (16:12 +0100)
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/acl.c

index 2a1a8538ac4e39e81db37834f88423f2d8a867f1..0a244f9befaf02c1f3d171278712ca2ff03d727a 100644 (file)
@@ -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)
 {