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

Configurable: remove unused double foreach loop #4008

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

Hanmac
Copy link
Contributor

@Hanmac Hanmac commented May 24, 2024

Description (*)

The double foreach does nothing of value inside the Block:

  • it just calls $this->_preparePrice which just does format the price value.
  • but then it does nothing with it. Even where it supposed to go inside $_prices variable hasn't been working for 16 years since Magento 1.1 when this file was created.
  • In theory, the variables aren't even used and could be removed too. But that might be more of a BC break.

Related Pull Requests

Fixed Issues (if relevant)

  1. Fixes Obsolete code in block for configurable products #2246

Manual testing scenarios (*)

  1. ...
  2. ...

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All automated tests passed successfully (all builds are green)
  • Add yourself to contributors list

@github-actions github-actions bot added the Component: Catalog Relates to Mage_Catalog label May 24, 2024
@fballiano
Copy link
Contributor

after reading the code I did a few tests and couldn't see any problem

@kiatng kiatng requested a review from elidrissidev June 4, 2024 03:11
@sreichel sreichel self-assigned this Sep 17, 2024
Copy link
Contributor

@sreichel sreichel left a comment

Choose a reason for hiding this comment

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

There is no variable assigned. Parameters arent used as reference.

Dont know how to test, but it looks useless.

@sreichel sreichel requested a review from kiatng October 10, 2024 08:22
@kiatng kiatng merged commit 5475f45 into OpenMage:main Oct 11, 2024
18 checks passed
fballiano added a commit to MahoCommerce/maho that referenced this pull request Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Catalog Relates to Mage_Catalog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Obsolete code in block for configurable products
4 participants