chore: remove unused BrowserWindow.fromDevToolsWebContents (#19090)
This commit is contained in:
parent
8782d06ed6
commit
d1292833e9
2 changed files with 0 additions and 27 deletions
|
@ -127,15 +127,6 @@ BrowserWindow.fromBrowserView = (browserView) => {
|
|||
return null
|
||||
}
|
||||
|
||||
BrowserWindow.fromDevToolsWebContents = (webContents) => {
|
||||
for (const window of BrowserWindow.getAllWindows()) {
|
||||
const { devToolsWebContents } = window
|
||||
if (devToolsWebContents != null && devToolsWebContents.equal(webContents)) {
|
||||
return window
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Helpers.
|
||||
Object.assign(BrowserWindow.prototype, {
|
||||
loadURL (...args) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue