Fix unused variables

This commit is contained in:
Aarni Koskela
2023-04-30 22:12:24 +03:00
parent 8ccc27127b
commit f6a40a2ffa
9 changed files with 14 additions and 21 deletions

View File

@@ -23,7 +23,6 @@ function imageMaskResize() {
const nw = previewImage.naturalWidth;
const nh = previewImage.naturalHeight;
const portrait = nh > nw;
const factor = portrait;
const wW = Math.min(w, portrait ? h/nh*nw : w/nw*nw);
const wH = Math.min(h, portrait ? h/nh*nh : w/nw*nh);