Commit dcd1c07ff0 for woocommerce
commit dcd1c07ff00e3871e02b92b9c748e5032ff8adcd
Author: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
Date: Thu Sep 18 15:10:43 2025 +0200
Product Gallery: remove unused code (#60972)
* Remove unused code
* Add changelog
diff --git a/plugins/woocommerce/changelog/fix-product-gallery-remove-unused-code b/plugins/woocommerce/changelog/fix-product-gallery-remove-unused-code
new file mode 100644
index 0000000000..3576418b0d
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-product-gallery-remove-unused-code
@@ -0,0 +1,5 @@
+Significance: patch
+Type: dev
+Comment: Remove unused code
+
+
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/product-gallery/edit.tsx b/plugins/woocommerce/client/blocks/assets/js/blocks/product-gallery/edit.tsx
index ccd453658a..16c463876d 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/product-gallery/edit.tsx
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/product-gallery/edit.tsx
@@ -5,7 +5,6 @@ import {
InnerBlocks,
InspectorControls,
useBlockProps,
- useInnerBlocksProps,
} from '@wordpress/block-editor';
import { BlockEditProps, InnerBlockTemplate } from '@wordpress/blocks';
import { withProductDataContext } from '@woocommerce/shared-hocs';
@@ -68,9 +67,3 @@ export const Edit = withProductDataContext(
);
}
);
-
-export const Save = () => {
- const blockProps = useBlockProps.save();
- const innerBlocksProps = useInnerBlocksProps.save( blockProps );
- return <div { ...innerBlocksProps } />;
-};