diff --git a/client/src/app/add-new-torrent/add-new-torrent.component.ts b/client/src/app/add-new-torrent/add-new-torrent.component.ts index 02edc05..cd38b75 100644 --- a/client/src/app/add-new-torrent/add-new-torrent.component.ts +++ b/client/src/app/add-new-torrent/add-new-torrent.component.ts @@ -110,25 +110,6 @@ export class AddNewTorrentComponent implements OnInit { this.checkFiles(); } - public downloadFileChecked(file: string): void { - this.downloadFiles[file] = !this.downloadFiles[file]; - - this.allSelected = true; - this.availableFiles.forEach((file) => { - if (!this.downloadFiles[file.filename]) { - this.allSelected = false; - } - }); - } - - public downloadFileCheckedAll(): void { - this.allSelected = !this.allSelected; - - this.availableFiles.forEach((file) => { - this.downloadFiles[file.filename] = this.allSelected; - }); - } - public ok(): void { this.saving = true; this.error = null; @@ -244,18 +225,6 @@ export class AddNewTorrentComponent implements OnInit { } } - public isRegexExcluded(file: TorrentFileAvailability): boolean { - if (this.regexSelected == null) { - return false; - } - - if (this.regexSelected.find((m) => m.filename === file.filename) == null) { - return true; - } - - return false; - } - public verifyRegex(): void { this.includeRegexError = null; this.excludeRegexError = null;