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

[REF] remove obsolete code. #15515

Merged
merged 1 commit into from
Oct 15, 2019
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Oct 15, 2019

Overview

On trying to look into a bug around this code I realised that there is quite a bit of code that does nothing.

These lines exist to build the variable $required - which is never used. Hence they can go.

I also spotted scriptArray is never used either - this stuff came from svn before everyone was using IDEs that
highlighted unused lines

Before

More code - no more functionality

After

Less code, same functionality

Technical Details

Comments

Anything else you would like the reviewer to note

On trying to look into a bug around this code I realised that there is quite a bit of code that does nothing.

These lines exist to build the  variable - which is never used. Hence they can go.

I also spotted scriptArray is never used either - this stuff came from svn before everyone was using IDEs that
highlighted unused lines
@civibot
Copy link

civibot bot commented Oct 15, 2019

(Standard links)

@civibot civibot bot added the master label Oct 15, 2019
@colemanw
Copy link
Member

Wow. Long function. Glad to see it get a little bit shorter.
Unrelated fails.

@colemanw colemanw merged commit 613ec72 into civicrm:master Oct 15, 2019
@colemanw colemanw deleted the event_flow branch October 15, 2019 20:38
'post',
] as $keys) {
if (isset($this->_values['additional_custom_' . $keys . '_id'])) {
$this->buildCustom($this->_values['additional_custom_' . $keys . '_id'], 'additionalCustom' . ucfirst($keys));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like this is required to load profiles for additional participants? Currently, no fields are displayed on the page.

image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have requested a PR here #15698. Seems like only this line is required ?

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.

3 participants