mirror of
https://github.com/electron/electron.git
synced 2026-02-11 23:54:57 -05:00
Remove unneeded cleanup code
This commit is contained in:
@@ -43,9 +43,4 @@ module.exports.wrap = (webContents) ->
|
||||
webContents
|
||||
|
||||
module.exports.create = (options={}) ->
|
||||
webContents = @wrap binding.create(options)
|
||||
|
||||
# Ensure the webContents is destroyed on exit.
|
||||
process.on 'exit', -> webContents.destroy()
|
||||
|
||||
webContents
|
||||
@wrap binding.create(options)
|
||||
|
||||
Reference in New Issue
Block a user