remove EE + __proto__

This commit is contained in:
Unitech 2016-07-02 12:37:48 +02:00
parent 70310a3f22
commit d5ea4a0a8d

View File

@ -5,7 +5,6 @@
*/
var debug = require('debug')('pm2:client');
var EventEmitter = require('events').EventEmitter;
var Common = require('./Common.js');
var KMDaemon = require('./Interactor/InteractorDaemonizer.js');
var rpc = require('pm2-axon-rpc');
@ -42,8 +41,6 @@ var Client = module.exports = function(opts) {
this.pub_socket_file = this.conf.DAEMON_PUB_PORT;
}
Client.prototype.__proto__ = EventEmitter.prototype;
// @breaking change (noDaemonMode has been drop)
// @todo ret err
Client.prototype.start = function(cb) {