diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-02-22 11:30:58 -0600 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-02-22 11:30:58 -0600 |
| commit | c2889c2b8173dda1e4fe50478c8d56ac00f2d255 (patch) | |
| tree | d7ba6e21f470a56d88fbe9be9ed8a7d068910c59 /wizard/utils.js | |
| parent | 333f4aaf83bd64de02b07a56d86bbf90363e403b (diff) | |
| parent | c6107d8376244560068184cbfafd38d3b2f536b8 (diff) | |
| download | monzero-gui-c2889c2b8173dda1e4fe50478c8d56ac00f2d255.tar.gz monzero-gui-c2889c2b8173dda1e4fe50478c8d56ac00f2d255.tar.xz monzero-gui-c2889c2b8173dda1e4fe50478c8d56ac00f2d255.zip | |
Merge pull request #1909
f329a71 Wizard redesign (xmrdsc)
c6107d8 wizard: allow calendar date for restoration height (mmbyday)
Diffstat (limited to 'wizard/utils.js')
| -rw-r--r-- | wizard/utils.js | 24 |
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$/, '') -} |
