Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprected warning to apparently unused functions #20192

Merged
merged 1 commit into from
Apr 30, 2021

Conversation

colemanw
Copy link
Member

Overview

This pair of functions do not appear to be called from anywhere. Marking as deprecated for eventual removal.

Technical Details

It looks like one check function is only ever called by the other, and the other isn't called from anywhere.

What these functions are supposed to do is unclear.
The code comment appears to be wrong; the variable $str is not a permission string but is inserted into a query as civicrm_acl.object_table.

Comments

That's clear as mud to me, but if they're unused we can just get rid of them.

For that matter, the whole CRM_ACL_API class makes very little sense to me. It's an internal class, not an api, but it's named API, and it does some obscure things with no documentation.

It looks like one check function is only ever called by the other,
and the other isn't called from anywhere.

What these functions are supposed to do is unclear.
The code comment appears to be wrong; the variable $str
is not a permission string but is inserted into a query
as civicrm_acl.object_table.
@civibot
Copy link

civibot bot commented Apr 29, 2021

(Standard links)

@civibot civibot bot added the master label Apr 29, 2021
@eileenmcnaughton
Copy link
Contributor

OK - I couldn't spot anything & a deprecation is low-risk

@eileenmcnaughton eileenmcnaughton merged commit 0fc7901 into civicrm:master Apr 30, 2021
@eileenmcnaughton eileenmcnaughton deleted the deprecateAclCheck branch April 30, 2021 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants