Skip to content

Commit

Permalink
Removes repo init.
Browse files Browse the repository at this point in the history
  • Loading branch information
hackergrrl committed Apr 21, 2016
1 parent 17e38bc commit 4680f4b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,6 @@ Valid keys for `opts` include:

If you use the former form, all of the sub-blob-stores will use the same store.

### repo.init(config, cb)

Initializes the IPFS repository at the repo's `path`. Currently this is a no-op.

Consumes a config object `config` *(TODO: specification?)* By default, init requires the repo not yet exist (by default). Calls the callback `cb(err)` on completion or error.

### repo.exists(cb)

Check if the repo you are going to access already exists. Calls the callback
Expand Down
8 changes: 0 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ function Repo (repoPath, options) {

this.path = repoPath

this.init = (config, callback) => {
this.exists((err, exists) => {
if (err) { throw err }
if (exists) { throw new Error('Repo already exists') }
throw new Error('not implemented')
})
}

this.locks = stores
.locks
.setUp(repoPath, options.stores.locks)
Expand Down

0 comments on commit 4680f4b

Please sign in to comment.