From f82ef0f7c3a024474847f10f18cf39df5f743b38 Mon Sep 17 00:00:00 2001 From: Yoshihiro Kikuchi Date: Wed, 7 Mar 2012 15:58:21 +0900 Subject: [PATCH] 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. --- lib/http.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/http.js b/lib/http.js index 74b9a65958d..5eee0adaf19 100644 --- a/lib/http.js +++ b/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) {