Skip to content

Commit 929a0cf

Browse files
committed
Clean
1 parent 969cfa8 commit 929a0cf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/gitbook/src/components/utils/ZoomImage.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ export function ZoomImage(
3232
return;
3333
}
3434

35-
const imageWidth = typeof width === 'number' ? width : 0;
36-
let viewWidth = 0;
37-
3835
const mediaQueryList = window.matchMedia('(min-width: 768px)');
3936
const resizeObserver =
4037
typeof ResizeObserver !== 'undefined'
@@ -44,7 +41,6 @@ export function ZoomImage(
4441
// Since the image is removed from the DOM when the modal is opened,
4542
// We only care when the size is defined.
4643
if (imgEntry && imgEntry.contentRect.width !== 0) {
47-
viewWidth = entries[0]?.contentRect.width;
4844
setPlaceholderRect(entries[0].contentRect);
4945
onChange();
5046
}

0 commit comments

Comments
 (0)