File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed
app/code/Magento/MediaGalleryRenditions Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ class Config
1919{
2020 private const TABLE_CORE_CONFIG_DATA = 'core_config_data ' ;
2121 private const XML_PATH_ENABLED = 'system/media_gallery/enabled ' ;
22- private const XML_PATH_MEDIA_GALLERY_RENDITIONS_ENABLED_PATH = 'system/media_gallery_renditions/enabled ' ;
2322 private const XML_PATH_MEDIA_GALLERY_RENDITIONS_WIDTH_PATH = 'system/media_gallery_renditions/width ' ;
2423 private const XML_PATH_MEDIA_GALLERY_RENDITIONS_HEIGHT_PATH = 'system/media_gallery_renditions/height ' ;
2524
@@ -55,16 +54,6 @@ public function isEnabled(): bool
5554 return $ this ->scopeConfig ->isSetFlag (self ::XML_PATH_ENABLED );
5655 }
5756
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-
6857 /**
6958 * Get max width
7059 *
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ public function beforeExecute(
9191 $ storeId
9292 ];
9393
94- if (!$ this ->config ->isEnabled () || ! $ this -> config -> isMediaGalleryRenditionsEnabled () ) {
94+ if (!$ this ->config ->isEnabled ()) {
9595 return $ arguments ;
9696 }
9797
You can’t perform that action at this time.
0 commit comments