summaryrefslogtreecommitdiffstats
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.mjs14
1 files changed, 0 insertions, 14 deletions
diff --git a/examples/demos/photoviewer/PhotoViewerCore/script/script.mjs b/examples/demos/photoviewer/PhotoViewerCore/script/script.mjs
index a1822197b..0a33a725d 100644
--- a/examples/demos/photoviewer/PhotoViewerCore/script/script.mjs
+++ b/examples/demos/photoviewer/PhotoViewerCore/script/script.mjs
@@ -48,20 +48,6 @@
**
****************************************************************************/
-export function getWidth(string) {
- return (string.match(/width=\"([0-9]+)\"/))[1]
-}
-
-export function getHeight(string) {
- return (string.match(/height=\"([0-9]+)\"/))[1]
-}
-
-export function getImagePath(string) {
- var pattern = /src=\"https?:\/\/(\S+)\"/
- var match = string.match(pattern)
- return match ? match[1] : ""
-}
-
export function calculateScale(width, height, cellSize) {
var widthScale = (cellSize * 1.0) / width
var heightScale = (cellSize * 1.0) / height