Browse files

http: remove ClientRequest.prototype.pause()

ClientRequest.prototype.pause() is not needed. ClientRequest is a writable
stream and deferring to OutgoingMessage.prototype.pause() is broken, the method
does not exist.
  • Loading branch information...
1 parent 024451c commit f82ef0f7c3a024474847f10f18cf39df5f743b38 @xenyou xenyou committed with bnoordhuis Mar 7, 2012
Showing with 0 additions and 6 deletions.
  1. +0 −6 lib/http.js
View
6 lib/http.js
@@ -1431,12 +1431,6 @@ ClientRequest.prototype.setNoDelay = function() {
ClientRequest.prototype.setSocketKeepAlive = function() {
this._deferToConnect('setKeepAlive', arguments);
};
-ClientRequest.prototype.pause = function() {
- var self = this;
- self._deferToConnect(null, null, function() {
- OutgoingMessage.prototype.pause.apply(self, []);
- });
-};
exports.request = function(options, cb) {

0 comments on commit f82ef0f

Please sign in to comment.