chore: remove unused WebContents._sendToFrameInternal (#35010)
This commit is contained in:
		
					parent
					
						
							
								fec4cca8d4
							
						
					
				
			
			
				commit
				
					
						3c63f075bd
					
				
			
		
					 2 changed files with 0 additions and 8 deletions
				
			
		| 
						 | 
					@ -124,13 +124,6 @@ WebContents.prototype.sendToFrame = function (frameId, channel, ...args) {
 | 
				
			||||||
  return true;
 | 
					  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.
 | 
					// Following methods are mapped to webFrame.
 | 
				
			||||||
const webFrameMethods = [
 | 
					const webFrameMethods = [
 | 
				
			||||||
  'insertCSS',
 | 
					  'insertCSS',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										1
									
								
								typings/internal-electron.d.ts
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								typings/internal-electron.d.ts
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -66,7 +66,6 @@ declare namespace Electron {
 | 
				
			||||||
    _callWindowOpenHandler(event: any, details: Electron.HandlerDetails): {browserWindowConstructorOptions: Electron.BrowserWindowConstructorOptions | null, outlivesOpener: boolean};
 | 
					    _callWindowOpenHandler(event: any, details: Electron.HandlerDetails): {browserWindowConstructorOptions: Electron.BrowserWindowConstructorOptions | null, outlivesOpener: boolean};
 | 
				
			||||||
    _setNextChildWebPreferences(prefs: Partial<Electron.BrowserWindowConstructorOptions['webPreferences']> & Pick<Electron.BrowserWindowConstructorOptions, 'backgroundColor'>): void;
 | 
					    _setNextChildWebPreferences(prefs: Partial<Electron.BrowserWindowConstructorOptions['webPreferences']> & Pick<Electron.BrowserWindowConstructorOptions, 'backgroundColor'>): void;
 | 
				
			||||||
    _send(internal: boolean, channel: string, args: any): boolean;
 | 
					    _send(internal: boolean, channel: string, args: any): boolean;
 | 
				
			||||||
    _sendToFrameInternal(frameId: number | [number, number], channel: string, ...args: any[]): boolean;
 | 
					 | 
				
			||||||
    _sendInternal(channel: string, ...args: any[]): void;
 | 
					    _sendInternal(channel: string, ...args: any[]): void;
 | 
				
			||||||
    _printToPDF(options: any): Promise<Buffer>;
 | 
					    _printToPDF(options: any): Promise<Buffer>;
 | 
				
			||||||
    _print(options: any, callback?: (success: boolean, failureReason: string) => void): void;
 | 
					    _print(options: any, callback?: (success: boolean, failureReason: string) => void): void;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue