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

Cleanup according to PHPStorm inspection part 3: Remove unused code #6407

Merged
merged 4 commits into from
Jan 12, 2019

Conversation

MrPetovan
Copy link
Collaborator

@MrPetovan MrPetovan commented Jan 7, 2019

Redux of #6401
Part of #4176
Related to #6404, #6406, #6408

This should be an impact-less PR. Only unused code has been removed, and each instance has been verified by hand, although not actually tested on a system.

@MrPetovan MrPetovan added this to the 2019.03 milestone Jan 7, 2019
- Remove commented code
- Remove unused/immediately overwritten variables
- Remove extraneous parameters
- Remove unreachable code
- Remove duplicate array keys
- Remove commented code
- Remove unused/immediately overwritten variables
- Remove extraneous parameters
- Remove unreachable code
- Remove unused variables
@annando
Copy link
Collaborator

annando commented Jan 9, 2019

Conflicts 😁

@MrPetovan
Copy link
Collaborator Author

Solved.

@annando
Copy link
Collaborator

annando commented Jan 11, 2019

Just some side note: having the q( and the SQL command (INSERT INTO, DELETE FROM, UPDATE, ...) in a single line makes them better searchable via grep for replacements. I know that this break some styling rules and possibly some pygmy rabbits are dying when you break this rule, but nonetheless this would help.

@MrPetovan
Copy link
Collaborator Author

Do you want me to fix the existing instances where q( isn't on the same line as the first query keyword although it isn't the point of this PR and no occurrences have been introduced?

@annando
Copy link
Collaborator

annando commented Jan 12, 2019

No, I just saw changed lines with this and wanted to make a wish for the future.

@annando annando merged commit c6a7c9b into friendica:develop Jan 12, 2019
@MrPetovan MrPetovan deleted the task/6401-3-remove-unused-code branch January 12, 2019 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants