diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 8cec6d6c53d..26f912eccd3 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -2066,16 +2066,6 @@ my_bool add_role_user_mapping(ROLE_GRANT_PAIR *mapping) } -static my_bool roles_mappings_walk_action(ROLE_GRANT_PAIR *mapping, - void * not_used __attribute__((unused))) -{ - if (add_role_user_mapping(mapping)) { - //the mapping is invalid, the mapping can be safely deleted - my_hash_delete(&acl_roles_mappings, (uchar*) mapping); - } - return 0; -} - /* Rebuild the role grants every time the acl_users is modified