aboutsummaryrefslogtreecommitdiff
path: root/js/Utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Utils.js')
-rw-r--r--js/Utils.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/js/Utils.js b/js/Utils.js
index 4a9a5fed..96786650 100644
--- a/js/Utils.js
+++ b/js/Utils.js
@@ -94,16 +94,6 @@ function netTypeToString(){
return nettype == 1 ? qsTr("Testnet") : nettype == 2 ? qsTr("Stagenet") : qsTr("Mainnet");
}
-function randomChoice(arr){
- return arr[Math.floor(Math.random() * arr.length)];
-}
-
-function filterNodes(nodes, port) {
- if(typeof data === 'number')
- port = port.toString();
- return nodes.filter(function(_){return _.indexOf(port) !== -1});
-}
-
function epoch(){
return Math.floor((new Date).getTime()/1000);
}