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

CRM-21471 remove unused core function CRM_Core_Pseudoconstant::greeti… #11313

Merged
merged 1 commit into from
Dec 2, 2017

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Nov 22, 2017

…ngDefaults

Overview

Removed function that is never called. Grepped codebase & searched google to check for other instances. (I think doing a google search is a reasonable surrogate for the universe check which requires a lot of downloading & disk space)

It turns out the actually used function is CRM_Contact_BAO_Contact_Utils::defaultGreeting

Technical Details

On review I find the function CRM_Core_Pseudoconstant::greetingDefaults to be called from only one place:
CRM_Core_PseudoConstant::processGreetings

It is only called if the value $useDefaults is passed in. CRM_Core_PseudoConstant::processGreetings is called from one place and $useDefaults is NOT passed in

@colemanw
Copy link
Member

colemanw commented Dec 2, 2017

+11 -75 SLOC!
Change looks very sensible.

@colemanw colemanw merged commit 0986e4f into civicrm:master Dec 2, 2017
@colemanw colemanw deleted the greet2 branch December 2, 2017 16:46
sluc23 pushed a commit to ixiam/civicrm-core that referenced this pull request Jan 10, 2018
CRM-21471 remove unused core function CRM_Core_Pseudoconstant::greeti…
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