diff --git a/lib/browser/api/browser-window.js b/lib/browser/api/browser-window.js index e433580ba63..6da2fdadb46 100644 --- a/lib/browser/api/browser-window.js +++ b/lib/browser/api/browser-window.js @@ -95,17 +95,6 @@ BrowserWindow.prototype._init = function () { // Notify the creation of the window. app.emit('browser-window-created', {}, this) - // Be compatible with old APIs. - this.webContents.on('devtools-focused', () => { - this.emit('devtools-focused') - }) - this.webContents.on('devtools-opened', () => { - this.emit('devtools-opened') - }) - this.webContents.on('devtools-closed', () => { - this.emit('devtools-closed') - }) - Object.defineProperty(this, 'devToolsWebContents', { enumerable: true, configurable: false,