chore: remove app.makeSingleInstance / releaseSingleInstance (#14518)

This commit is contained in:
Milan Burda 2018-09-10 08:33:36 +02:00 committed by Samuel Attard
parent f012ed8357
commit dcd580b6cf
4 changed files with 0 additions and 55 deletions

View file

@ -107,21 +107,6 @@ for (let name of events) {
})
}
// TODO(MarshallOfSound): Remove in 4.0
app.releaseSingleInstance = () => {
deprecate.warn('app.releaseSingleInstance(cb)', 'app.releaseSingleInstanceLock()')
app.releaseSingleInstanceLock()
}
// TODO(MarshallOfSound): Remove in 4.0
app.makeSingleInstance = (oldStyleFn) => {
deprecate.warn('app.makeSingleInstance(cb)', 'app.requestSingleInstanceLock() and app.on(\'second-instance\', cb)')
if (oldStyleFn && typeof oldStyleFn === 'function') {
app.on('second-instance', (event, ...args) => oldStyleFn(...args))
}
return !app.requestSingleInstanceLock()
}
// Wrappers for native classes.
const {DownloadItem} = process.atomBinding('download_item')
Object.setPrototypeOf(DownloadItem.prototype, EventEmitter.prototype)