1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

Remove print helper

This commit is contained in:
Ruben Bridgewater
2016-12-17 17:19:13 +01:00
committed by Ruben Bridgewater
parent 47242b342a
commit ce3227dedd
9 changed files with 24 additions and 78 deletions

View File

@ -30,15 +30,6 @@ function replyToStrings (reply) {
return reply;
}
function print (err, reply) {
if (err) {
// A error always begins with Error:
console.log(err.toString());
} else {
console.log('Reply: ' + reply);
}
}
var camelCase;
// Deep clone arbitrary objects with arrays. Can't handle cyclic structures (results in a range error)
// Any attribute with a non primitive value besides object and array will be passed by reference (e.g. Buffers, Maps, Functions)
@ -125,7 +116,6 @@ function replyInOrder (self, callback, err, res, queue) {
module.exports = {
reply_to_strings: replyToStrings,
reply_to_object: replyToObject,
print: print,
err_code: /^([A-Z]+)\s+(.+)$/,
monitor_regex: /^[0-9]{10,11}\.[0-9]+ \[[0-9]+ .+\]( ".+?")+$/,
clone: convenienceClone,