Skip to content

Commit f18af11

Browse files
yogeshksdimonovp
authored andcommitted
Removed unnecessary protected member variables.
Removed unnecessary protected member variables of Image class. The variable `$imageHelper`, `$product` and `$attributes` are not in use. Above three variable doesn't contain any values. Also verified it on category, product and cart page.
1 parent 447a24d commit f18af11

File tree

1 file changed

+0
-15
lines changed
  • app/code/Magento/Catalog/Block/Product

1 file changed

+0
-15
lines changed

app/code/Magento/Catalog/Block/Product/Image.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,6 @@
1919
*/
2020
class Image extends \Magento\Framework\View\Element\Template
2121
{
22-
/**
23-
* @var \Magento\Catalog\Helper\Image
24-
*/
25-
protected $imageHelper;
26-
27-
/**
28-
* @var \Magento\Catalog\Model\Product
29-
*/
30-
protected $product;
31-
32-
/**
33-
* @var array
34-
*/
35-
protected $attributes = [];
36-
3722
/**
3823
* @param \Magento\Framework\View\Element\Template\Context $context
3924
* @param array $data

0 commit comments

Comments
 (0)