mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[chore] remove unused functions
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import path from "path";
|
||||
import { app, BrowserWindow } from "electron";
|
||||
import { IpcResponse } from "shared/models/ipc";
|
||||
import log from "electron-log";
|
||||
import { app } from "electron";
|
||||
|
||||
// TODO : REFACTOR
|
||||
|
||||
@@ -44,12 +42,4 @@ export class UtilsService {
|
||||
public getBuildPath(filepath: string): string {
|
||||
return path.join(this.buildPath, filepath);
|
||||
}
|
||||
|
||||
public ipcSend<T = unknown>(channel: string, response: IpcResponse<T>): void {
|
||||
try {
|
||||
BrowserWindow.getAllWindows().forEach(window => window?.webContents?.send(channel, response));
|
||||
} catch (error) {
|
||||
log.error(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user