mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
Remove unnecessary imports and variables
This commit is contained in:
@@ -2,10 +2,9 @@
|
||||
import { LaunchOption } from "shared/models/bs-launch";
|
||||
import { BSLauncherService } from "../services/bs-launcher/bs-launcher.service"
|
||||
import { IpcService } from '../services/ipc.service';
|
||||
import { from, of } from "rxjs";
|
||||
import { from} from "rxjs";
|
||||
import { SteamLauncherService } from "../services/bs-launcher/steam-launcher.service";
|
||||
import { OculusLauncherService } from "../services/bs-launcher/oculus-launcher.service";
|
||||
import { AutoUpdaterService } from "../services/auto-updater.service";
|
||||
|
||||
const ipc = IpcService.getInstance();
|
||||
|
||||
|
||||
@@ -2,18 +2,12 @@ import { autoUpdater } from "electron-updater";
|
||||
import log from "electron-log";
|
||||
import { UtilsService } from "./utils.service";
|
||||
import { gt } from "semver";
|
||||
import { Observable } from "rxjs";
|
||||
import { ConfigurationService } from "./configuration.service";
|
||||
|
||||
export class AutoUpdaterService {
|
||||
private static instance: AutoUpdaterService;
|
||||
|
||||
private readonly utilsService: UtilsService;
|
||||
|
||||
private readonly ConfigurationService: ConfigurationService
|
||||
|
||||
private readonly HAVE_BEEN_UPDATED_KEY : string;
|
||||
|
||||
public static getInstance(): AutoUpdaterService {
|
||||
if (!AutoUpdaterService.instance) {
|
||||
AutoUpdaterService.instance = new AutoUpdaterService();
|
||||
@@ -26,8 +20,6 @@ export class AutoUpdaterService {
|
||||
autoUpdater.autoDownload = false;
|
||||
|
||||
this.utilsService = UtilsService.getInstance();
|
||||
this.ConfigurationService = ConfigurationService.getInstance();
|
||||
this.HAVE_BEEN_UPDATED_KEY = "haveBeenUpdated";
|
||||
}
|
||||
|
||||
public isUpdateAvailable(): Promise<boolean> {
|
||||
|
||||
Reference in New Issue
Block a user