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

Remove unused function from utils

This commit is contained in:
Ruben Bridgewater
2015-12-30 16:14:48 +01:00
parent 5ef24a90b6
commit 3514a32825

View File

@@ -36,17 +36,6 @@ function replyToStrings(reply) {
return reply; return reply;
} }
function toArray(args) {
var len = args.length,
arr = new Array(len), i;
for (i = 0; i < len; i += 1) {
arr[i] = args[i];
}
return arr;
}
function print (err, reply) { function print (err, reply) {
if (err) { if (err) {
console.log('Error: ' + err); console.log('Error: ' + err);
@@ -60,7 +49,6 @@ var redisErrCode = /^([A-Z]+)\s+(.+)$/;
module.exports = { module.exports = {
reply_to_strings: replyToStrings, reply_to_strings: replyToStrings,
reply_to_object: replyToObject, reply_to_object: replyToObject,
to_array: toArray,
print: print, print: print,
err_code: redisErrCode err_code: redisErrCode
}; };