|
|
@ -936,17 +936,6 @@ Stream.prototype.resume = function () { |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var forceCloseWarning; |
|
|
|
|
|
|
|
Stream.prototype.forceClose = function (e) { |
|
|
|
if (!forceCloseWarning) { |
|
|
|
forceCloseWarning = "forceClose() has been renamed to destroy()"; |
|
|
|
sys.error(forceCloseWarning); |
|
|
|
} |
|
|
|
return this.destroy(e); |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
Stream.prototype.destroy = function (exception) { |
|
|
|
// pool is shared between sockets, so don't need to free it here.
|
|
|
|
var self = this; |
|
|
@ -1011,15 +1000,6 @@ Stream.prototype._shutdown = function () { |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
var closeDepricationWarning; |
|
|
|
|
|
|
|
Stream.prototype.close = function (data, encoding) { |
|
|
|
if (!closeDepricationWarning) { |
|
|
|
closeDepricationWarning = "Notification: Stream.prototype.close has been renamed to end()"; |
|
|
|
sys.error(closeDepricationWarning); |
|
|
|
} |
|
|
|
return this.end(data, encoding); |
|
|
|
}; |
|
|
|
|
|
|
|
Stream.prototype.end = function (data, encoding) { |
|
|
|
if (this.writable) { |
|
|
|