refactor: remove outdated code

This commit is contained in:
4gray committed 2021-01-23 13:54:03 +01:00
1 parent e75a67f745
commit abc196903d
3 files changed
-20

No files matched your search

-10
View File
@@ -14,8 +14,6 @@ import {
} from './src/app/shared/ipc-commands';
const fs = require('fs');
const join = require('path').join;
const openAboutWindow = require('about-window').default;
const userData = app.getPath('userData');
const db = new Nedb<Playlist>({
filename: `${userData}/db/data.db`,
@@ -89,14 +87,6 @@ export class Api {
}
});
ipcMain.on('show-about', () => {
openAboutWindow({
icon_path: join(__dirname, 'dist/assets/icons/icon.png'),
copyright: 'Copyright (c) 2020 4gray',
package_json_dir: __dirname,
});
});
// open playlist from file system
ipcMain.on('open-file', (event, args) => {
fs.readFile(args.filePath, 'utf-8', (err, data) => {
@@ -39,9 +39,6 @@
</button>
{{ activeChannel.name }}
<div class="spacer"></div>
<!-- <button mat-icon-button (click)="openAbout()">
<mat-icon>info</mat-icon>
</button> -->
<button
*ngIf="epgAvailable$ | async"
mat-button
@@ -91,13 +91,6 @@ export class VideoPlayerComponent implements OnInit {
this.sideNav.close();
}
/**
* Opens about application dialog
*/
openAbout(): void {
this.electronService.ipcRenderer.send('show-about');
}
/**
* Adds/removes a given channel to the favorites list
* @param channel channel to add