From 51bf5904dbb133187ad5baab09ae91f28617a4ea Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Wed, 20 Oct 2021 11:23:36 -0400 Subject: [PATCH] Remove unused code --- utils/GunSmith/gun.js | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/utils/GunSmith/gun.js b/utils/GunSmith/gun.js index f69dee87..71a44a6a 100644 --- a/utils/GunSmith/gun.js +++ b/utils/GunSmith/gun.js @@ -143,30 +143,6 @@ const handleMsg = async msg => { sendMsg(msg) }) } - if (msg.type === 'load') { - const [root, ...keys] = msg.path.split('>') - - /** @type {GunT.GUNNode} */ - let node = - { - $root: gun, - $user: user - }[root] || gun.user(root) - - for (const key of keys) { - node = node.get(key) - } - node.load((data, key) => { - /** @type {Smith.GunMsgLoad} */ - const res = { - data, - id: msg.id, - key, - type: 'load' - } - sendMsg(res) - }) - } if (msg.type === 'on') { const [root, ...keys] = msg.path.split('>')