Skip to content

Remove dead code from getTotalProductsByProductId#12899

Merged
danielkerr merged 1 commit intoopencart:masterfrom
AJenbo:patch-2
Nov 10, 2023
Merged

Remove dead code from getTotalProductsByProductId#12899
danielkerr merged 1 commit intoopencart:masterfrom
AJenbo:patch-2

Conversation

@AJenbo
Copy link
Copy Markdown
Contributor

@AJenbo AJenbo commented Nov 7, 2023

As there is no way to feed the $data array to the function this code can never be activated. Also it does not look to have been and omission as the call site has no trace of filter variables that would fit here.

The offending code was introduced in this commit which also does not appear to have intended for it usage: e49531f

@danielkerr
Copy link
Copy Markdown
Member

its used in best sellers

@danielkerr danielkerr closed this Nov 10, 2023
@danielkerr danielkerr reopened this Nov 10, 2023
@danielkerr danielkerr merged commit 8686044 into opencart:master Nov 10, 2023
@AJenbo AJenbo deleted the patch-2 branch November 10, 2023 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants