From f7f2146fa53e94be742f607a4a089e1c2874f1e0 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 30 Jun 2021 19:09:53 +0530 Subject: [PATCH] miscellaneous cleanup and notes --- customize.dist/src/less2/include/markdown.less | 4 ++-- lib/commands/pin-rpc.js | 2 +- lib/env.js | 2 +- lib/storage/block.js | 11 ----------- 4 files changed, 4 insertions(+), 15 deletions(-) diff --git a/customize.dist/src/less2/include/markdown.less b/customize.dist/src/less2/include/markdown.less index f52b2666f..f42a27146 100644 --- a/customize.dist/src/less2/include/markdown.less +++ b/customize.dist/src/less2/include/markdown.less @@ -177,12 +177,12 @@ a { color: @cryptpad_text_col; font-size: 0.8em; - &.cp-remote-img::before { + &.cp-remote-img::before { // .fa.fa-question-circle font-family: FontAwesome; //content: "\f08e\00a0"; content: "\f08e\00a0\00a0"; } - &.cp-learn-more::before { + &.cp-learn-more::before { // .fa.fa-external-link font-family: FontAwesome; content: "\f059\00a0"; //content: "\f059\00a0\00a0"; diff --git a/lib/commands/pin-rpc.js b/lib/commands/pin-rpc.js index 6fc05c202..89afc4ee8 100644 --- a/lib/commands/pin-rpc.js +++ b/lib/commands/pin-rpc.js @@ -228,7 +228,7 @@ Pinning.resetUserPins = function (Env, safeKey, channelList, _cb) { var session = Core.getSession(Env.Sessions, safeKey); - if (!channelList.length) { // XXX wut + if (!channelList.length) { return void cb(); } diff --git a/lib/env.js b/lib/env.js index 6b033fa16..141e028ae 100644 --- a/lib/env.js +++ b/lib/env.js @@ -123,7 +123,7 @@ module.exports.create = function (config) { maxWorkers: config.maxWorkers, disableIntegratedTasks: config.disableIntegratedTasks || false, - disableIntegratedEviction: config.disableIntegratedEviction || false, + disableIntegratedEviction: config.disableIntegratedEviction || true, // XXX false, lastEviction: +new Date(), evictionReport: {}, commandTimers: {}, diff --git a/lib/storage/block.js b/lib/storage/block.js index 5dfc393a5..d3e7a1869 100644 --- a/lib/storage/block.js +++ b/lib/storage/block.js @@ -79,14 +79,3 @@ Block.write = function (Env, publicKey, buffer, _cb) { }); }; -/* -Block.create = function (opt, _cb) { - var cb = Util.once(Util.mkAsync(_cb)); - - var env = { - root: opt.root || '', // XXX - - - }; -}; -*/