mirror of
https://github.com/desktop/desktop
synced 2024-11-05 20:49:32 +00:00
Remove unused properties
Co-Authored-By: Markus Olsson <634063+niik@users.noreply.github.com>
This commit is contained in:
parent
15aee6d037
commit
0276dcfa55
2 changed files with 1 additions and 10 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue