summaryrefslogtreecommitdiff
path: root/examples/demos/photoviewer/PhotoViewerCore/script/script.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/demos/photoviewer/PhotoViewerCore/script/script.mjs')
-rw-r--r--examples/demos/photoviewer/PhotoViewerCore/script/script.mjs15
1 files changed, 0 insertions, 15 deletions
diff --git a/examples/demos/photoviewer/PhotoViewerCore/script/script.mjs b/examples/demos/photoviewer/PhotoViewerCore/script/script.mjs
deleted file mode 100644
index 05e56600..00000000
--- a/examples/demos/photoviewer/PhotoViewerCore/script/script.mjs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-export function calculateScale(width, height, cellSize) {
- var widthScale = (cellSize * 1.0) / width
- var heightScale = (cellSize * 1.0) / height
- var scale = 0
-
- if (widthScale <= heightScale) {
- scale = widthScale;
- } else if (heightScale < widthScale) {
- scale = heightScale;
- }
- return scale;
-}