From 3e47b8a38d75d1c430af40579c25c5da1765dd02 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 5 Apr 2017 10:42:24 +0200 Subject: [PATCH] remove dead code --- www/common/pinpad.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/www/common/pinpad.js b/www/common/pinpad.js index 65d40407d..260ac4d66 100644 --- a/www/common/pinpad.js +++ b/www/common/pinpad.js @@ -25,23 +25,7 @@ define([ return hash; }; - // TODO move this into pinpad - false && (function () { - // compute what you think the hash should be - - // then ask the server if what it has matches your records - rpc.send('GET_HASH', edPublic, function (e, hash) { - if (e) { return void console.error(e); } - - console.log("user pins hash is [%s]", hash); - // if it does, awesome! - // you should be able to pin and unpin things easily - - // if it doesn't, send a reset, and start re-pinning - }); - }()); - - getServerHash = function (rpc, edPublic, cb) { + var getServerHash = function (rpc, edPublic, cb) { rpc.send('GET_HASH', edPublic, cb); };