From 3c63f075bd35333b80f78c462cdba1440b3fec55 Mon Sep 17 00:00:00 2001 From: Jeremy Rose Date: Thu, 21 Jul 2022 10:25:54 -0700 Subject: [PATCH] chore: remove unused WebContents._sendToFrameInternal (#35010) --- lib/browser/api/web-contents.ts | 7 ------- typings/internal-electron.d.ts | 1 - 2 files changed, 8 deletions(-) diff --git a/lib/browser/api/web-contents.ts b/lib/browser/api/web-contents.ts index 594c2fc28e65..6433bed4df56 100644 --- a/lib/browser/api/web-contents.ts +++ b/lib/browser/api/web-contents.ts @@ -124,13 +124,6 @@ WebContents.prototype.sendToFrame = function (frameId, channel, ...args) { return true; }; -WebContents.prototype._sendToFrameInternal = function (frameId, channel, ...args) { - const frame = getWebFrame(this, frameId); - if (!frame) return false; - frame._sendInternal(channel, ...args); - return true; -}; - // Following methods are mapped to webFrame. const webFrameMethods = [ 'insertCSS', diff --git a/typings/internal-electron.d.ts b/typings/internal-electron.d.ts index 2d286f23d5cc..7789f297e55e 100644 --- a/typings/internal-electron.d.ts +++ b/typings/internal-electron.d.ts @@ -66,7 +66,6 @@ declare namespace Electron { _callWindowOpenHandler(event: any, details: Electron.HandlerDetails): {browserWindowConstructorOptions: Electron.BrowserWindowConstructorOptions | null, outlivesOpener: boolean}; _setNextChildWebPreferences(prefs: Partial & Pick): void; _send(internal: boolean, channel: string, args: any): boolean; - _sendToFrameInternal(frameId: number | [number, number], channel: string, ...args: any[]): boolean; _sendInternal(channel: string, ...args: any[]): void; _printToPDF(options: any): Promise; _print(options: any, callback?: (success: boolean, failureReason: string) => void): void;