From 6b5bbe50ee2c6fd1de7930fee2156d746b34d0d5 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Tue, 5 May 2020 20:10:07 -0230 Subject: [PATCH] Delete createDnodeRemoteGetter.js (#8523) --- app/scripts/lib/createDnodeRemoteGetter.js | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 app/scripts/lib/createDnodeRemoteGetter.js diff --git a/app/scripts/lib/createDnodeRemoteGetter.js b/app/scripts/lib/createDnodeRemoteGetter.js deleted file mode 100644 index 038ae412d..000000000 --- a/app/scripts/lib/createDnodeRemoteGetter.js +++ /dev/null @@ -1,18 +0,0 @@ -export default createDnodeRemoteGetter - -function createDnodeRemoteGetter (dnode) { - let remote - - dnode.once('remote', (_remote) => { - remote = _remote - }) - - async function getRemote () { - if (remote) { - return remote - } - return await new Promise((resolve) => dnode.once('remote', resolve)) - } - - return getRemote -}