Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

Commit fb73bde

Browse files
jcrugzzLars-Magnus Skog
authored andcommitted
[fix] remove copy as it requires write-stream
1 parent 616da29 commit fb73bde

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

lib/levelup.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,6 @@ function utilStatic (name) {
449449
}
450450

451451
module.exports = LevelUP
452-
module.exports.copy = util.copy
453452
// DEPRECATED: prefer accessing LevelDOWN for this: require('leveldown').destroy()
454453
module.exports.destroy = utilStatic('destroy')
455454
// DEPRECATED: prefer accessing LevelDOWN for this: require('leveldown').repair()

lib/util.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ var extend = require('xtend')
2323
return eo
2424
}())
2525

26-
function copy (srcdb, dstdb, callback) {
27-
srcdb.readStream()
28-
.pipe(dstdb.writeStream())
29-
.on('close', callback ? callback : function () {})
30-
.on('error', callback ? callback : function (err) { throw err })
31-
}
32-
3326
function getOptions (levelup, options) {
3427
var s = typeof options == 'string' // just an encoding
3528
if (!s && options && options.encoding && !options.valueEncoding)
@@ -84,7 +77,6 @@ function isDefined (v) {
8477

8578
module.exports = {
8679
defaultOptions : defaultOptions
87-
, copy : copy
8880
, getOptions : getOptions
8981
, getLevelDOWN : getLevelDOWN
9082
, dispatchError : dispatchError

0 commit comments

Comments
 (0)