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 -}