Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Image block: Remove unused code
  • Loading branch information
Mamaduka committed Aug 21, 2025
commit ebb3ff4d3ca0903dc7fd5d3286251d59375e2574
6 changes: 0 additions & 6 deletions packages/block-library/src/image/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ export function ImageEdit( {
} ) {
const {
url = '',
alt,
caption,
id,
width,
Expand Down Expand Up @@ -127,11 +126,6 @@ export function ImageEdit( {

const isSmallContainer = placeholderWidth && placeholderWidth < 160;

const altRef = useRef();
useEffect( () => {
altRef.current = alt;
}, [ alt ] );

const captionRef = useRef();
useEffect( () => {
captionRef.current = caption;
Expand Down
Loading