aboutsummaryrefslogtreecommitdiff
path: root/wizard/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'wizard/utils.js')
-rw-r--r--wizard/utils.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/wizard/utils.js b/wizard/utils.js
deleted file mode 100644
index 65409046..00000000
--- a/wizard/utils.js
+++ /dev/null
@@ -1,24 +0,0 @@
-.pragma library
-
-function mapScope (inputScopeFrom, inputScopeTo, outputScopeFrom, outputScopeTo, value) {
- var x = (value - inputScopeFrom) / (inputScopeTo - inputScopeFrom);
- var result = outputScopeFrom + ((outputScopeTo - outputScopeFrom) * x);
- return result;
-}
-
-
-function tr(text) {
- return qsTr(text) + translationManager.emptyString
-}
-
-
-function lineBreaksToSpaces(text) {
- return text.trim().replace(/(\r\n|\n|\r)/gm, " ");
-}
-
-function usefulName(path) {
- // arbitrary "short enough" limit
- if (path.length < 32)
- return path
- return path.replace(/.*[\/\\]/, '').replace(/\.keys$/, '')
-}