From 848a918edae3ac8578a0fd3f2dbd2f942e6ce7ac Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 16 Jul 2018 15:45:19 +0200 Subject: [PATCH] remove out of date comments --- rpc.js | 6 ------ www/common/cryptpad-common.js | 2 +- www/common/outer/login-block.js | 12 ------------ 3 files changed, 1 insertion(+), 19 deletions(-) diff --git a/rpc.js b/rpc.js index 5a6d64036..54739b78e 100644 --- a/rpc.js +++ b/rpc.js @@ -1357,12 +1357,6 @@ var validateLoginBlock = function (Env, publicKey, signature, block, cb) { if (!verified) { return void cb("E_COULD_NOT_VERIFY"); } return void cb(null, u8_block); - - // signature 64 bytes - // sign.detached(hash(decodeBase64_content(base64_content)), decodeBase64(publicKey)) - - // 1 byte version - // base64_content }; var createLoginBlockPath = function (Env, publicKey) { diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 8ce75583c..d33f2e28a 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1146,7 +1146,7 @@ define([ init: true, userHash: userHash || LocalStore.getUserHash(), anonHash: LocalStore.getFSHash(), - localToken: tryParsing(localStorage.getItem(Constants.tokenKey)), // TODO move tihs to LocalStore ? + localToken: tryParsing(localStorage.getItem(Constants.tokenKey)), // TODO move this to LocalStore ? language: common.getLanguage(), messenger: rdyCfg.messenger, // Boolean driveEvents: rdyCfg.driveEvents // Boolean diff --git a/www/common/outer/login-block.js b/www/common/outer/login-block.js index 0b8f91036..341a2e7d1 100644 --- a/www/common/outer/login-block.js +++ b/www/common/outer/login-block.js @@ -97,8 +97,6 @@ define([ }; }; - // FIXME don't spread the functions below across this file and common-hash - // find a permanent home for these hacks var urlSafeB64 = function (u8) { return Nacl.util.encodeBase64(u8).replace(/\//g, '-'); }; @@ -117,16 +115,6 @@ define([ return absolute + '#' + symmetric; }; -/* - Block.createBlockHash = function (href, key) { - if (typeof(href) !== 'string') { return; } - if (!(key instanceof Uint8Array)) { return; } - - try { return href + '#' + Nacl.util.encodeBase64(key); } - catch (e) { return; } - }; -*/ - var decodeSafeB64 = function (b64) { try { return Nacl.util.decodeBase64(b64.replace(/\-/g, '/'));