aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/TxUtils.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/js/TxUtils.js b/js/TxUtils.js
index 42a5d449..63405338 100644
--- a/js/TxUtils.js
+++ b/js/TxUtils.js
@@ -73,30 +73,3 @@ function isValidOpenAliasAddress(address) {
// we can get an awful lot of valid domains, including non ASCII chars... accept anything
return true
}
-
-function makeQRCodeString(addr, amount, txDescription, recipientName) {
- var XMR_URI_SCHEME = "monero:"
- var XMR_AMOUNT = "tx_amount"
- var XMR_RECIPIENT_NAME = "recipient_name"
- var XMR_TX_DESCRIPTION = "tx_description"
- var qrCodeString =""
- qrCodeString += (XMR_URI_SCHEME + addr)
- if (amount !== undefined && amount !== ""){
- qrCodeString += ("?" + XMR_AMOUNT + "=" + amount)
- }
- if (txDescription !== undefined && txDescription !== ""){
- if (amount == ""){
- qrCodeString += ("?" + XMR_TX_DESCRIPTION + "=" + encodeURI(txDescription))
- } else {
- qrCodeString += ("&" + XMR_TX_DESCRIPTION + "=" + encodeURI(txDescription))
- }
- }
- if (recipientName !== undefined && recipientName !== ""){
- if (amount == "" && txDescription == ""){
- qrCodeString += ("?" + XMR_RECIPIENT_NAME + "=" + encodeURI(recipientName))
- } else {
- qrCodeString += ("&" + XMR_RECIPIENT_NAME + "=" + encodeURI(recipientName))
- }
- }
- return qrCodeString
-}