Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

Commit

Permalink
Remove unused LogIO.fromMultihash method
Browse files Browse the repository at this point in the history
  • Loading branch information
satazor committed Jan 15, 2019
1 parent f45f896 commit 5a41512
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/log-io.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,6 @@ class LogIO {
}
}

/**
* Create a log from a multihash.
* @param {IPFS} ipfs An IPFS instance
* @param {string} multihash Multihash (as a Base58 encoded string) to create the Log from
* @param {number} [length=-1] How many items to include in the log
* @param {Array<Entry>} [exclude] Entries to not fetch (cached)
* @param {function(cid, entry, parent, depth)} onProgressCallback
* @returns {Promise<Log>}
* @deprecated
*/
static async fromMultihash (ipfs, multihash, length = -1, exclude, onProgressCallback) {
return LogIO.fromCID(ipfs, multihash, length, exclude, onProgressCallback)
}

static async fromEntryCid (ipfs, entryCid, length = -1, exclude, onProgressCallback) {
if (!isDefined(ipfs)) throw LogError.IpfsNotDefinedError()
if (!isDefined(entryCid)) throw new Error("'entryCid' must be defined")
Expand Down

0 comments on commit 5a41512

Please sign in to comment.