Remove unused properties

Co-Authored-By: Markus Olsson <634063+niik@users.noreply.github.com>
This commit is contained in:
Sergio Padrino 2022-07-11 09:22:00 +02:00
parent 15aee6d037
commit 0276dcfa55
2 changed files with 1 additions and 10 deletions

View file

@ -5,7 +5,6 @@ import {
BrowserWindow,
autoUpdater,
nativeTheme,
WebContents,
} from 'electron'
import { Emitter, Disposable } from 'event-kit'
import { encodePathAsUrl } from '../lib/path'
@ -214,10 +213,6 @@ export class AppWindow {
return !!this.loadTime && !!this.rendererReadyTime
}
public get webContents(): WebContents {
return this.window.webContents
}
public onClose(fn: () => void) {
this.window.on('closed', fn)
}

View file

@ -1,4 +1,4 @@
import { BrowserWindow, WebContents } from 'electron'
import { BrowserWindow } from 'electron'
import { Emitter, Disposable } from 'event-kit'
import { ICrashDetails, ErrorType } from '../crash/shared'
import { registerWindowStateChangedEvents } from '../lib/window-state'
@ -58,10 +58,6 @@ export class CrashWindow {
this.errorType = errorType
}
public get webContents(): WebContents {
return this.window.webContents
}
public load() {
log.debug('Starting crash process')