[chore] remove unused functions

This commit is contained in:
MathieuG-P
2024-09-29 19:46:53 +02:00
parent 0576ea0159
commit db5af48250
2 changed files with 3 additions and 56 deletions
+1 -11
View File
@@ -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);
}
}
}