This repository was archived by the owner on Dec 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -449,7 +449,6 @@ function utilStatic (name) {
449
449
}
450
450
451
451
module . exports = LevelUP
452
- module . exports . copy = util . copy
453
452
// DEPRECATED: prefer accessing LevelDOWN for this: require('leveldown').destroy()
454
453
module . exports . destroy = utilStatic ( 'destroy' )
455
454
// DEPRECATED: prefer accessing LevelDOWN for this: require('leveldown').repair()
Original file line number Diff line number Diff line change @@ -23,13 +23,6 @@ var extend = require('xtend')
23
23
return eo
24
24
} ( ) )
25
25
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
-
33
26
function getOptions ( levelup , options ) {
34
27
var s = typeof options == 'string' // just an encoding
35
28
if ( ! s && options && options . encoding && ! options . valueEncoding )
@@ -84,7 +77,6 @@ function isDefined (v) {
84
77
85
78
module . exports = {
86
79
defaultOptions : defaultOptions
87
- , copy : copy
88
80
, getOptions : getOptions
89
81
, getLevelDOWN : getLevelDOWN
90
82
, dispatchError : dispatchError
You can’t perform that action at this time.
0 commit comments