Skip to content

Commit dd85b46

Browse files
Mamadukat-hamano
andauthored
Image block: Remove unused code (#71292)
Co-authored-by: Mamaduka <[email protected]> Co-authored-by: t-hamano <[email protected]>
1 parent 238c573 commit dd85b46

File tree

1 file changed

+0
-6
lines changed
  • packages/block-library/src/image

1 file changed

+0
-6
lines changed

packages/block-library/src/image/edit.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ export function ImageEdit( {
9999
} ) {
100100
const {
101101
url = '',
102-
alt,
103102
caption,
104103
id,
105104
width,
@@ -127,11 +126,6 @@ export function ImageEdit( {
127126

128127
const isSmallContainer = placeholderWidth && placeholderWidth < 160;
129128

130-
const altRef = useRef();
131-
useEffect( () => {
132-
altRef.current = alt;
133-
}, [ alt ] );
134-
135129
const captionRef = useRef();
136130
useEffect( () => {
137131
captionRef.current = caption;

0 commit comments

Comments
 (0)