Skip to content

Commit 4680f4b

Browse files
committed
Removes repo init.
1 parent 17e38bc commit 4680f4b

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

README.md

-6
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,6 @@ Valid keys for `opts` include:
122122

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

125-
### repo.init(config, cb)
126-
127-
Initializes the IPFS repository at the repo's `path`. Currently this is a no-op.
128-
129-
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.
130-
131125
### repo.exists(cb)
132126

133127
Check if the repo you are going to access already exists. Calls the callback

src/index.js

-8
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@ function Repo (repoPath, options) {
2222

2323
this.path = repoPath
2424

25-
this.init = (config, callback) => {
26-
this.exists((err, exists) => {
27-
if (err) { throw err }
28-
if (exists) { throw new Error('Repo already exists') }
29-
throw new Error('not implemented')
30-
})
31-
}
32-
3325
this.locks = stores
3426
.locks
3527
.setUp(repoPath, options.stores.locks)

0 commit comments

Comments
 (0)