aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-10-13 01:22:05 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2012-10-13 01:27:15 +0200
commit61978f57e6c3cfd8aeb3cc22490d10b1ea09f473 (patch)
treebae13b9733ae25dff45879a6caad81af3e61d224 /lib
parent8509073458f227901dc84e872dc01651c3b912d3 (diff)
downloadandroid-node-v8-61978f57e6c3cfd8aeb3cc22490d10b1ea09f473.tar.gz
android-node-v8-61978f57e6c3cfd8aeb3cc22490d10b1ea09f473.tar.bz2
android-node-v8-61978f57e6c3cfd8aeb3cc22490d10b1ea09f473.zip
dgram: remove stale code
Diffstat (limited to 'lib')
-rw-r--r--lib/dgram.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/dgram.js b/lib/dgram.js
index 6c70e175de..483794b725 100644
--- a/lib/dgram.js
+++ b/lib/dgram.js
@@ -209,10 +209,6 @@ Socket.prototype.send = function(buffer,
function afterSend(status, handle, req, buffer) {
var self = handle.owner;
- // CHECKME socket's been closed by user, don't call callback?
- if (handle !== self._handle)
- void(0);
-
if (req.cb)
req.cb(null, buffer.length); // compatibility with dgram_legacy.js
}
@@ -320,11 +316,6 @@ Socket.prototype._stopReceiving = function() {
if (!this._receiving)
return;
- // Black hole messages coming in when reading is stopped. Libuv might do
- // this, but node applications (e.g. test/simple/test-dgram-pingpong) may
- // not expect it.
- this._handle.onmessage = noop;
-
this._handle.recvStop();
this._receiving = false;
this.fd = null; // compatibility hack