diff --git a/lib/levelup.js b/lib/levelup.js index 51923a6b..706edf5a 100644 --- a/lib/levelup.js +++ b/lib/levelup.js @@ -449,7 +449,6 @@ function utilStatic (name) { } module.exports = LevelUP -module.exports.copy = util.copy // DEPRECATED: prefer accessing LevelDOWN for this: require('leveldown').destroy() module.exports.destroy = utilStatic('destroy') // DEPRECATED: prefer accessing LevelDOWN for this: require('leveldown').repair() diff --git a/lib/util.js b/lib/util.js index 99a62baa..2e74f89f 100644 --- a/lib/util.js +++ b/lib/util.js @@ -23,13 +23,6 @@ var extend = require('xtend') return eo }()) -function copy (srcdb, dstdb, callback) { - srcdb.readStream() - .pipe(dstdb.writeStream()) - .on('close', callback ? callback : function () {}) - .on('error', callback ? callback : function (err) { throw err }) -} - function getOptions (levelup, options) { var s = typeof options == 'string' // just an encoding if (!s && options && options.encoding && !options.valueEncoding) @@ -84,7 +77,6 @@ function isDefined (v) { module.exports = { defaultOptions : defaultOptions - , copy : copy , getOptions : getOptions , getLevelDOWN : getLevelDOWN , dispatchError : dispatchError