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

Remove support for 0.10

This commit is contained in:
Ruben Bridgewater
2016-12-17 17:26:39 +01:00
committed by Ruben Bridgewater
parent 2f6c421006
commit 6589f61421
4 changed files with 5 additions and 16 deletions

View File

@@ -19,11 +19,6 @@ var SUBSCRIBE_COMMANDS = {
punsubscribe: true
};
// Newer Node.js versions > 0.10 return the EventEmitter right away and using .EventEmitter was deprecated
if (typeof EventEmitter !== 'function') {
EventEmitter = EventEmitter.EventEmitter;
}
function noop () {}
function handle_detect_buffers_reply (reply, command, buffer_args) {
@@ -419,9 +414,7 @@ RedisClient.prototype.on_ready = function () {
this.cork = function () {
self.pipeline = true;
if (self.stream.cork) {
self.stream.cork();
}
self.stream.cork();
};
this.uncork = function () {
if (self.fire_strings) {
@@ -431,10 +424,8 @@ RedisClient.prototype.on_ready = function () {
}
self.pipeline = false;
self.fire_strings = true;
if (self.stream.uncork) {
// TODO: Consider using next tick here. See https://github.com/NodeRedis/node_redis/issues/1033
self.stream.uncork();
}
// TODO: Consider using next tick here. See https://github.com/NodeRedis/node_redis/issues/1033
self.stream.uncork();
};
// Restore modal commands from previous connection. The order of the commands is important