remove dead code
This commit is contained in:
@@ -25,23 +25,7 @@ define([
|
|||||||
return hash;
|
return hash;
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO move this into pinpad
|
var getServerHash = function (rpc, edPublic, cb) {
|
||||||
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) {
|
|
||||||
rpc.send('GET_HASH', edPublic, cb);
|
rpc.send('GET_HASH', edPublic, cb);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user