You've already forked node-redis
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:
12
lib/utils.js
12
lib/utils.js
@@ -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
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user