From 9e9b138afb1329425e7fd2d80fc14b7e18cbe5c4 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 3 Dec 2014 23:13:26 -0500 Subject: [PATCH] removed unused code --- loader.js | 5 ----- src/webserver.js | 7 ------- 2 files changed, 12 deletions(-) diff --git a/loader.js b/loader.js index 1b6d36968d..118797095a 100644 --- a/loader.js +++ b/loader.js @@ -132,11 +132,6 @@ Loader.addWorkerEvents = function(worker) { hash: message.hash }, worker.pid); break; - case 'listening': - if (message.primary) { - Loader.primaryWorker = parseInt(worker.pid, 10); - } - break; case 'config:update': Loader.notifyWorkers(message); break; diff --git a/src/webserver.js b/src/webserver.js index 26e0ca7d9f..db95577980 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -106,13 +106,6 @@ if(nconf.get('ssl')) { } winston.info('NodeBB is now listening on: ' + bind_address); - if (process.send) { - process.send({ - action: 'listening', - bind_address: bind_address, - primary: nconf.get('isPrimary') === 'true' - }); - } callback(); });