File tree 2 files changed +1
-12
lines changed
app/code/Magento/MediaGalleryRenditions
2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ class Config
19
19
{
20
20
private const TABLE_CORE_CONFIG_DATA = 'core_config_data ' ;
21
21
private const XML_PATH_ENABLED = 'system/media_gallery/enabled ' ;
22
- private const XML_PATH_MEDIA_GALLERY_RENDITIONS_ENABLED_PATH = 'system/media_gallery_renditions/enabled ' ;
23
22
private const XML_PATH_MEDIA_GALLERY_RENDITIONS_WIDTH_PATH = 'system/media_gallery_renditions/width ' ;
24
23
private const XML_PATH_MEDIA_GALLERY_RENDITIONS_HEIGHT_PATH = 'system/media_gallery_renditions/height ' ;
25
24
@@ -55,16 +54,6 @@ public function isEnabled(): bool
55
54
return $ this ->scopeConfig ->isSetFlag (self ::XML_PATH_ENABLED );
56
55
}
57
56
58
- /**
59
- * Check if the media gallery renditions is enabled
60
- *
61
- * @return bool
62
- */
63
- public function isMediaGalleryRenditionsEnabled (): bool
64
- {
65
- return $ this ->scopeConfig ->isSetFlag (self ::XML_PATH_MEDIA_GALLERY_RENDITIONS_ENABLED_PATH );
66
- }
67
-
68
57
/**
69
58
* Get max width
70
59
*
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ public function beforeExecute(
91
91
$ storeId
92
92
];
93
93
94
- if (!$ this ->config ->isEnabled () || ! $ this -> config -> isMediaGalleryRenditionsEnabled () ) {
94
+ if (!$ this ->config ->isEnabled ()) {
95
95
return $ arguments ;
96
96
}
97
97
You can’t perform that action at this time.
0 commit comments