Skip to content

Commit 87d3dcb

Browse files
committed
remove deprecated getclient func
1 parent 6ad2b14 commit 87d3dcb

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

src/app/components/snapcast-status/snapcast-status.component.ts

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ export class SnapcastStatusComponent implements OnInit, OnDestroy {
2626

2727
}
2828

29-
getClientDetails(clientId: string): Observable<Client | undefined> {
30-
return this.snapcastService.getClient(clientId);
31-
}
29+
3230

3331
onSetClientVolumePercent(clientId: string, event: Event): void {
3432
const inputElement = event.target as HTMLInputElement;
@@ -44,31 +42,6 @@ export class SnapcastStatusComponent implements OnInit, OnDestroy {
4442
).subscribe()
4543
);
4644
}
47-
48-
onToggleClientMute(client: Client): void {
49-
// const newMuteState = !client.config.volume.muted;
50-
// this.subscriptions.add(
51-
// this.snapcastService.setClientMute(client.id, newMuteState).pipe(
52-
// catchError(err => {
53-
// console.error(`Component: Failed to toggle mute for ${client.id}`, err);
54-
// return EMPTY;
55-
// })
56-
// ).subscribe()
57-
// );
58-
}
59-
60-
onChangeGroupName(groupId: string, newName: string): void {
61-
// if (!newName || !newName.trim()) return;
62-
// this.subscriptions.add(
63-
// this.snapcastService.setGroupName(groupId, newName.trim()).pipe(
64-
// catchError(err => {
65-
// console.error(`Component: Failed to change group name for ${groupId}`, err);
66-
// return EMPTY;
67-
// })
68-
// ).subscribe()
69-
// );
70-
}
71-
7245
ngOnDestroy(): void {
7346
this.subscriptions.unsubscribe();
7447
}

0 commit comments

Comments
 (0)