From 89a476f0bc7eb06025977adef08499becc4b0ea0 Mon Sep 17 00:00:00 2001 From: Thor Date: Sat, 26 Feb 2022 17:05:25 +0100 Subject: [PATCH] Remove duplicate JS code for media gallery --- app/javascript/mastodon/components/media_gallery.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/javascript/mastodon/components/media_gallery.js b/app/javascript/mastodon/components/media_gallery.js index 344e046de6..edba0cc863 100644 --- a/app/javascript/mastodon/components/media_gallery.js +++ b/app/javascript/mastodon/components/media_gallery.js @@ -92,14 +92,6 @@ class Item extends React.PureComponent { let numCols = Math.ceil(root); let numRows = Math.ceil(size / numCols); - let row = Math.floor(index / numCols); - if(row === numRows - 1) { - width = 100 / (1 + ((size - 1) % numCols)); - } else { - width = 100 / numCols; - } - height = 100 / numRows; - let col = index % numCols; let row = Math.floor(index / numCols); if(row === numRows - 1) {